Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: test is not posix



On Jan 20, 10:06pm, Trek wrote:
}
} the -n and -z options of the test utility are not posixly correct if the
} argument is "!", "(", ")" or "-a"

I'm not able to reproduce this; what is the $ZSH_VERSION or $ZSH_PATCHLEVEL
that you are testing?  What do you see if you run with the -x option?

% ARGV0=sh Src/zsh -c 'test -n "!" && echo OK'
OK
% 




Messages sorted by: Reverse Date, Date, Thread, Author