Configuration Information [Automatically generated, do not change]:
Machine: i486
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i486'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i486-pc-linux-gnu'
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='ba
On Thu, Jun 28, 2007 at 06:58:25PM -0400, Chet Ramey wrote:
> ackstorm wrote:
> > Configuration Information [Automatically generated, do not change]:
> > Machine: i486
> > OS: linux-gnu
> > Compiler: gcc
> > Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HO
On Fri, Jun 29, 2007 at 10:16:18AM +0100, Stephane Chazelas wrote:
>
> Do you mean that for instance, you'd like a third command to be
> executed if either but not both of two commands succeed?
>
> cmd1; a=$?
> cmd2; b=$?
> (( !a != !b )) && cmd3
>
> should do.
Thank you, that works. Although