Subject: Re: test is not posix
From: Bart Schaefer <[email-masked]>
To: Trek <[email-masked]>, [email-masked]
Date: Wed, 20 Jan 2016 13:38:58 -0800
List-Id: Zsh Workers List <zsh-workers.zsh.org>

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
%