On Saturday 15 April 2006 19:55, Herculano Einloft wrote:
> $ if $(echo string >/dev/null); then echo true; fi
> true
>
> This should be a syntax error, since
>
> $ if; then echo true; fi
> bash: syntax error near unexpected token `;'

the first command statement is more like:
if :; then echo true; fi
-mike


_______________________________________________
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash

Reply via email to