Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] run-help: ugly workaround for run-help-$X with alias for $X
- X-seq: zsh-workers 27517
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: [PATCH] run-help: ugly workaround for run-help-$X with alias for $X
- Date: Mon, 14 Dec 2009 09:01:53 -0800
- In-reply-to: <200912141938.07890.arvidjaar@xxxxxxx>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20091214114004.GA31015@xxxxxxxxxxxx> <200912141342.nBEDg23i004301@xxxxxxxxxxxxxx> <091214075055.ZM8191@xxxxxxxxxxxxxxxxxxxxxx> <200912141938.07890.arvidjaar@xxxxxxx>
On Dec 14, 7:38pm, Andrey Borzenkov wrote:
}
} > Aside: I can't find the "var=value command ..." syntax anywhere in
} > the zsh manual. I was sure there was some mention of it,
}
} As far as I can tell:
}
} 6.1 Simple Commands & Pipelines
} ===============================
}
} A _simple command_ is a sequence of optional parameter assignments
} followed by blank-separated words
Aha. I was searching for an actual example of the syntax, similar to
the grammar for complex commands that appears a couple sections later.
} May be, what is missing - explicit statement that if no command name is
} given, parameter assignments modify current shell.
The manual seems to distinguish between assignments (having no command)
and commands with optional assignments. I suppose you could say that a
simple command is a sequence of assignments, redirections, and words,
any of which are optional, but that's not how it currently is structured.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author