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

Re: Parse error with parameter assignbent and builtin time command



On 10/16/19, Christopher Zimmermann <madroach@xxxxxxxxxx> wrote:
> Hi,
>
> I just hit this parse error:
>
> LD_LIBRARY_PATH=$HOME/src/openldap/libraries/liblmdb time
> _build/default/tests/test.exe
> zsh: parse error near `time'
>
> this worked fine:
> LD_LIBRARY_PATH=$HOME/src/openldap/libraries/liblmdb /usr/bin/time
> _build/default/tests/test.exe
>
> Is this a bug? I don't read the mailing list, so please add me CC.

'time' is a reserved word, so the correct syntax is
time foo=bar somecmd

-- 
Mikael Magnusson



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