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

Re: behavior of test true -a \( ! -a \)



On Mon, Mar 25, 2024 at 10:33 AM Vincent Lefevre <vincent@xxxxxxxxxx> wrote:
>
> With zsh, this is consistent:
>
> cventin% test \( ! -a \) \) ; echo $?
> 0
> cventin% test true -a \( ! -a \) \) ; echo $?
> 0
>
> The other implementations see consistent too.

Those will both fail if PWS's patch is applied.  I'm not sure which
other implementations you mean, but

Mac% /bin/test \( ! -a \) \) ; echo $?
test: closing paren expected
2




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