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



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