This is the mail archive of the
cygwin
mailing list for the Cygwin project.
bash test -n && test -z return tru
- From: Poor Yorick <com dot cygwin dot cygwin at pooryorick dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 19 Aug 2005 15:01:19 -0400
- Subject: bash test -n && test -z return tru
from reading the bash man pages, I would have thought the -n and -z were
mutually exclusive. Therefore I don't understand this result:
~>$ [ -n $(which nonexisingfilename 2>/dev/null) ] && [ -z $(which
nonexistingfilename 2&>/dev/null) ] && echo hello
hello
~>$
can anyone help explain this?
--
Poor Yorick
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/