not true ! man, to prove this, try the following :
>test -n string >echo $? output : 0 >test -n >echo $? output : 0 !!! while -z is working, look : >test -z string >echo $? output : 1 >test -z >echo $? output : 0 from that, we find that -n always return 0 as exit code, no matter it was given as input (or even not input at all !) while -z is working by changing exit code to 1 when given an input(-n should be the opposite according to the description mentioned above) thanks for understanding On 12/18/10, Matthias Klose <matthias.kl...@canonical.com> wrote: > works as specified > > ** Changed in: bash (Ubuntu) > Status: New => Invalid > > -- > You received this bug notification because you are a direct subscriber > of the bug. > https://bugs.launchpad.net/bugs/689990 > > Title: > test function always return zero with its "n" parameter > -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/689990 Title: test function always return zero with its "n" parameter -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs