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

Parsing error on parsing 'A=1 time'



$ zsh -c 'A=1 time'
zsh:1: parse error near `time'


Compared to:

$ zsh -c 'A=1; time'
shell  0.00s user 0.01s system 295% cpu 0.003 total
children  0.00s user 0.00s system 0% cpu 0.003 total


This seems to be specific to the time builtin when prepended with a env var
assignment, echo works properly. Could not find a ticket related to this on
sourceforge, my apologies if it has been reported before.

zsh 5.7.1 (x86_64-apple-darwin17.7.0)

Cheers,
Emil



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