zsh-workers
 help / color / mirror / code / Atom feed
From: Emil Gedda <emil.gedda@ef.com>
To: "zsh-workers@zsh.org" <zsh-workers@zsh.org>
Subject: Parsing error on parsing 'A=1 time'
Date: Thu, 20 Jun 2019 10:14:58 +0000	[thread overview]
Message-ID: <7A677F3A-4047-4D2F-A7FD-A1362955A79E@ef.com> (raw)

$ 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

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

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20190620101612epcas1p3cc8576152f0692b019570469379111e5@epcas1p3.samsung.com>
2019-06-20 10:14 ` Emil Gedda [this message]
2019-06-20 11:04   ` Peter Stephenson

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=7A677F3A-4047-4D2F-A7FD-A1362955A79E@ef.com \
    --to=emil.gedda@ef.com \
    --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).