From: Bart Schaefer <schaefer@brasslantern.com>
To: Daniel Shahaf <d.s@daniel.shahaf.name>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: When is a pre-command assignment syntactically valid?
Date: Wed, 6 Dec 2017 17:57:00 -0800 [thread overview]
Message-ID: <CAH+w=7YsBFZzzYCPxU4pRLV8SyUonX8LAVWTOKbR7T2X_GrQsQ@mail.gmail.com> (raw)
In-Reply-To: <20171206232305.naro27of6abrk4y3@tarpaulin.shahaf.local2>
On Wed, Dec 6, 2017 at 3:23 PM, Daniel Shahaf <d.s@daniel.shahaf.name> wrote:
> I think the rule is: "reserved words may not be preceded by parameter
> assignments". Is that accurate?
Literally, the rule is "parameter assignments may precede only a
simple command." (In fact the assignment syntax is part of the
definition of simple command syntax.)
Of the set of $reswords from zsh/parameter, "nocorrect" and all of the
aliases for "typeset" may begin a simple command. The rest may not.
prev parent reply other threads:[~2017-12-07 1:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-06 23:23 Daniel Shahaf
2017-12-07 1:57 ` Bart Schaefer [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='CAH+w=7YsBFZzzYCPxU4pRLV8SyUonX8LAVWTOKbR7T2X_GrQsQ@mail.gmail.com' \
--to=schaefer@brasslantern.com \
--cc=d.s@daniel.shahaf.name \
--cc=zsh-users@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).