From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14957 invoked by alias); 14 Dec 2009 17:02:37 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 27517 Received: (qmail 10681 invoked from network); 14 Dec 2009 17:02:25 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <091214090153.ZM8346@torch.brasslantern.com> Date: Mon, 14 Dec 2009 09:01:53 -0800 In-reply-to: <200912141938.07890.arvidjaar@mail.ru> Comments: In reply to Andrey Borzenkov "Re: [PATCH] run-help: ugly workaround for run-help-$X with alias for $X" (Dec 14, 7:38pm) References: <20091214114004.GA31015@alea.gnuu.de> <200912141342.nBEDg23i004301@news01.csr.com> <091214075055.ZM8191@torch.brasslantern.com> <200912141938.07890.arvidjaar@mail.ru> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: [PATCH] run-help: ugly workaround for run-help-$X with alias for $X MIME-version: 1.0 Content-type: text/plain; charset=us-ascii 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.