[ale] exit code and if

Geoffrey esoteric at 3times25.net
Thu Jul 18 12:01:51 EDT 2002




Zyman, Andy wrote:
> Hello ALE,
> as always simple question and looking for Your suggestions:
> 
> cmd
> if [ $? -ne 0 ]; then <do smth> fi

cmd || do smth

> 
> Is there a better way to this? I mean how i can get rid from this 2 lines
> and make one ?
> 
> 
> Thank You
>  Andy
> 
> ---
> 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.
> 
> 
> 


-- 
Until later: Geoffrey		esoteric at 3times25.net

I didn't have to buy my radio from a specific company to listen
to FM, why doesn't that apply to the Internet (anymore...)?


---
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