Dan Jacobson <[EMAIL PROTECTED]> writes: > The docs make it look like test -n STRING and test STRING do the > same. However, > $ /usr/bin/test ``; echo $? > 1 > $ /usr/bin/test -n ``; echo $? > 0 > $ test ``; echo $? > 1 > $ test -n ``; echo $? > 0
Those test cases are misleading, since they use ` (accent grave) instead of ' (apostrophe). The accent grave characters vanish before "test" is invoked, so the tests are actually comparing "test" (with no arguments) to "test -n". The behavior you're observing conforms to POSIX, so I don't see any bug. _______________________________________________ Bug-coreutils mailing list [EMAIL PROTECTED] http://lists.gnu.org/mailman/listinfo/bug-coreutils