[:)))

2006-04-16 Thread root
Configuration Information [Automatically generated, do not change]: Machine: i686 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-redhat-linux-gnu' -DCONF_VENDOR='redhat' -DLOCALEDIR='/usr/share/locale' -DPAC

Re: `if $(cmd);' is a positive when there's no output from cmd

2006-04-16 Thread Andreas Schwab
Herculano Einloft <[EMAIL PROTECTED]> writes: > Em (02:25:11), Andreas Schwab escreveu: > >> >>> Hey all, >>> >>> $ if $(echo string >/dev/null); then echo true; fi >>> true >>> >>> This should be a syntax error >> >>No, it is a perfectly valid command, syntactically. That the command >>