[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ -n ] != [ -n "" ] in 2.05a
From: |
Bernhard Rosenkraenzer |
Subject: |
[ -n ] != [ -n "" ] in 2.05a |
Date: |
Thu, 13 Dec 2001 16:04:29 +0100 (CET) |
[ -n ] && echo "bug"
will print "bug".
I'd have expected [ -n ] would be the same as [ -n "" ]...
(Affects the variants thereof, as well, e.g.
unset FOO
[ -n $FOO ] && echo "bug")
LLaP
bero
--
This message is provided to you under the terms outlined at
http://www.bero.org/terms.html
- [ -n ] != [ -n "" ] in 2.05a,
Bernhard Rosenkraenzer <=