Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: When is a pre-command assignment syntactically valid?
- X-seq: zsh-users 23001
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- Subject: Re: When is a pre-command assignment syntactically valid?
- Date: Wed, 6 Dec 2017 17:57:00 -0800
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=/vX+p2xR/BnTofiOZ3kMe12icZE4L35XBC/IO3gTd6I=; b=XMUpQZr66YsZbTwSkiO2hnlmBwRPpO3P/2eQwt09iCOIPt1x1kCNuiybgFNZOOFtHl P2ss7emWlCT5KSje2OE9oc6Amrjy0+Dg1BZ8a2mAwpYnXIKnMmXKUWsQyNyuSBXqQjvk zROyEXG/ouoaXZwK6ovehxuo4rlxdT6dBj2CalURmU5tNvyR/9IjbgzN5UoziwxDtMZj JC2gjrdR4fJvgJkIXVhwAYaPOMj4SPyjXoG80FLPzY3LHw879M2hFccRhw4UHNa61mhp SEiFZxcSNBDQJNbQb8BMwAGWYb5RyQIzy2kshaNbYSKr+urS6OzCh5nyjAnAK8rWYh2z /8Bw==
- In-reply-to: <20171206232305.naro27of6abrk4y3@tarpaulin.shahaf.local2>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20171206232305.naro27of6abrk4y3@tarpaulin.shahaf.local2>
On Wed, Dec 6, 2017 at 3:23 PM, Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> 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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author