zsh-workers
 help / color / mirror / code / Atom feed
From: Mikael Magnusson <mikachu@gmail.com>
To: Christopher Zimmermann <madroach@gmerlin.de>
Cc: zsh-workers@zsh.org
Subject: Re: Parse error with parameter assignbent and builtin time command
Date: Wed, 16 Oct 2019 12:37:02 +0200	[thread overview]
Message-ID: <CAHYJk3Q=Y310ZYq90koLwKbe9fUeW_qt2QdKFnG4-TF+qQLabg@mail.gmail.com> (raw)
In-Reply-To: <20191016095508.GA15387@mortimer.gmerlin.de>

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

      reply	other threads:[~2019-10-16 10:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-16  9:55 Christopher Zimmermann
2019-10-16 10:37 ` Mikael Magnusson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAHYJk3Q=Y310ZYq90koLwKbe9fUeW_qt2QdKFnG4-TF+qQLabg@mail.gmail.com' \
    --to=mikachu@gmail.com \
    --cc=madroach@gmerlin.de \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).