This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Is this supposed to work this way?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]