Is this supposed to work this way?

Andrey Repin anrdaemon@freemail.ru
Wed Apr 4 09:04:00 GMT 2012


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



More information about the Cygwin mailing list