Hey all, 

$ 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 `;' 

Tested on 

GNU bash, version 2.05b.0(1)-release (i386-pc-linux-gnu) 
Copyright (C) 2002 Free Software Foundation, Inc. 

and 

GNU bash, version 3.1.7(1)-release (i386-redhat-linux-gnu) 
Copyright (C) 2005 Free Software Foundation, Inc. 

Regards 


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

Reply via email to