[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: scripting gnuclient and emacs for mutt [ was: emacsclient -nw]



On Thu, Nov 20, 2003 at 10:56:01AM -0600, Lucas Bergman wrote:
> Matt Price <matt.price@utoronto.ca> 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



Reply to: