On Thu, Nov 20, 2003 at 10:56:01AM -0600, Lucas Bergman wrote:
> Matt Price <[EMAIL PROTECTED]> writes:
> 
> > David Z Maze wrote:
> >
> > is it possible in bash to test whether a comand has actually worked?
> 
> The '||' operator does this, like:
> 
>   #!/bin/sh
>   gnuclient "$@" || xemacs -nomapped "$@" || vi "$@"
> 
> or something.
> 
> Lucas

thanks lucas, this is great, very elegant.

matt


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to