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

Re: zsh syntax check fails on correct if [[ usage (rhbz 966911)



On Fri, 18 Oct 2013 08:48:31 -0700
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> If you run the test as
> 
>     zsh -vxn /tmp/test.zsh
> 
> it becomes clear that zsh is actually executing some of the commands,
> and then returning the exit status of those commands rather than of
> the syntax check itself.

It's certainly forking, and I think it's peforming the assignments, and
it seems to perform the test.  The problem here is we don't actually
have a syntax checking mode, we just have a mode that tries to execute
as little as possible.  As little as possible isn't a very clear target.

pws



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