From: Andrey Repin <anrdaemon@freemail.ru>
To: Warren Young <warren@etr-usa.com>, cygwin@cygwin.com
Subject: Re: Is this supposed to work this way?
Date: Wed, 04 Apr 2012 09:04:00 -0000 [thread overview]
Message-ID: <103388385.20120404130124@mtu-net.ru> (raw)
In-Reply-To: <4F7BC6B1.8030506@etr-usa.com>
Greetings, Warren Young!
>> what is the standard way of detecting OS type?
>> uname -o
>> ?
> The wise try not to do that at all.
> Instead, take in a little wisdom from the people who created autoconf, a
> piece of software that's been uncommonly successful[*] by FOSS
> standards: don't test for platforms, test for features.
Well, then, following your wisdom, I have to clog every line of my script with
"... || exit" or an equivalent.
Because even an attempt to continue execution, if any error occured, would be
disastrous to the calling program.
Solution is to "set -e" and have script bail out at any problem, but if I try
autoconf approach and blindly run whatever I feel appropriate, hoping for the
best and preparing for worst, I won't have such option.
--
WBR,
Andrey Repin (anrdaemon@freemail.ru) 04.04.2012, <12:57>
Sorry for my terrible english...
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
next prev parent reply other threads:[~2012-04-04 9:04 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-03 21:47 Buchbinder, Barry (NIH/NIAID) [E]
2012-04-04 0:50 ` Andrey Repin
2012-04-04 0:57 ` Eric Blake
2012-04-04 1:50 ` Andrey Repin
2012-04-04 3:57 ` Warren Young
2012-04-04 7:51 ` Csaba Raduly
2012-04-04 9:04 ` Andrey Repin [this message]
2012-04-04 13:30 ` Eric Blake
2012-04-04 18:09 ` Warren Young
2012-04-05 22:50 ` Andrey Repin
2012-04-04 12:29 ` Nellis, Kenneth
-- strict thread matches above, loose matches on Subject: below --
2012-04-03 19:35 Andrey Repin
2012-04-03 22:50 ` Andrey Repin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=103388385.20120404130124@mtu-net.ru \
--to=anrdaemon@freemail.ru \
--cc=cygwin@cygwin.com \
--cc=warren@etr-usa.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).