Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: [key]=value syntax, work in progress



Peter Stephenson wrote on Wed, Sep 13, 2017 at 20:41:08 +0100:
> +++ b/Doc/Zsh/params.yo
> @@ -91,13 +91,36 @@ cindex(array assignment)
> +available.  Both var(key) and var(value) undergo all forms of expansion
> +allowed for single word substitutions (this does not include filename
> +generation).

This uses the term "single word substitutions".  The completion for 'e'
after ${(<TAB> says "single word shell expansions".  The manual entry
for ${(e)} does not use either term.

Perhaps the manual for ${(e)} could use the term "single-word
(substitutions|expansions)"?  And then this sentence might
cross-reference that flag; for example:

    Both var(key) and var(value) undergo single word expansions,
    as in `tt(${+LPAR()e+RPAR())var(...)tt(+RPAR())'
    (note, this does not include filename generation).

Cheers,

Daniel



Messages sorted by: Reverse Date, Date, Thread, Author