On Tue, Jun 08, 2010 at 01:44:47PM +0100, Darren J Moffat wrote:
> On 08/06/2010 13:14, Steve McKinty wrote:
>> If I wrote a portable configure script which contained something
>> like:
>>
>> if [ vax ]; then
>> do vaxy setup
>> else if [ u3b ]; then
>> do AT&T setup
>> else if [ sun ]; then
>> do Solaris setup
>> endif
>>
>> it would work unchanged on all those architectures. Take out the
>> vax and u3b commands and it will then crash when run on Solaris.
>
> The same script will fail on Ububtu as well - I just checked they don't  
> exist there.

And technically, this will continue to work as expected, with an
extra error message like:

test.sh: vax: not found.

Since a "command not found" evaluates to "false", the logic would
still be intact.

Venky.
_______________________________________________
opensolaris-arc mailing list
opensolaris-arc@opensolaris.org

Reply via email to