bug-bash
[Top][All Lists]
Advanced

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

RE: wrong logical evaluation of expressions involving true or falsecomma


From: Andrew Neitsch
Subject: RE: wrong logical evaluation of expressions involving true or falsecommands
Date: Mon, 25 Jun 2007 13:22:02 -0400

'help test' says that an expression consisting of a single string is an alias 
for "-n STRING" which is "true if the string is not empty." So, [ false -a 
false ] and [ false ] are true because "false" is a non-empty string. [ "" ] is 
false.

You probably just want 'true && false' without the [.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]