[ale] exit code and if
Zyman, Andy
zymana at hra.nyc.gov
Thu Jul 18 10:58:23 EDT 2002
> -----Original Message-----
> From: Fletch [mailto:fletch at phydeaux.org]
> Sent: Thursday, July 18, 2002 10:34 AM
> To: Zyman, Andy
> Cc: 'ale at ale.org'
> Subject: Re: [ale] exit code and if
>
>
-------cuted --------------------------
>
> But if you need to do several things you could just use the
> command itself as the expression for the if (since all it's looking
> for is the return value of the command; `[' is just a link to the
> `test' command (or a shell builtin of the same name), and all it does
> is exit with the apropriate value for the conditional its passed).
>
>
> if cmd ; then foo ; bar ; baz ; fi
Wav!
I knew it should be for the elementary school. What i didn't know that i'm
still in kindergarden %).
thank You Fletch.
AZ
---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.
More information about the Ale
mailing list