zsh-workers
 help / color / Atom feed
* Parse error with parameter assignbent and builtin time command
@ 2019-10-16  9:55 Christopher Zimmermann
  2019-10-16 10:37 ` Mikael Magnusson
  0 siblings, 1 reply; 2+ messages in thread
From: Christopher Zimmermann @ 2019-10-16  9:55 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 504 bytes --]

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.


Christopher


-- 
http://gmerlin.de
OpenPGP: http://gmerlin.de/christopher.pub
CB07 DA40 B0B6 571D 35E2  0DEF 87E2 92A7 13E5 DEE1

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Parse error with parameter assignbent and builtin time command
  2019-10-16  9:55 Parse error with parameter assignbent and builtin time command Christopher Zimmermann
@ 2019-10-16 10:37 ` Mikael Magnusson
  0 siblings, 0 replies; 2+ messages in thread
From: Mikael Magnusson @ 2019-10-16 10:37 UTC (permalink / raw)
  To: Christopher Zimmermann; +Cc: zsh-workers

On 10/16/19, Christopher Zimmermann <madroach@gmerlin.de> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-16  9:55 Parse error with parameter assignbent and builtin time command Christopher Zimmermann
2019-10-16 10:37 ` Mikael Magnusson

zsh-workers

Archives are clonable: git clone --mirror http://inbox.vuxu.org/zsh-workers

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.zsh.workers


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git