diff options
author | Bart Schaefer <schaefer@zsh.org> | 2023-03-11 13:22:10 -0800 |
---|---|---|
committer | Bart Schaefer <schaefer@zsh.org> | 2023-03-11 13:22:10 -0800 |
commit | 29503debc778535011f085589d94448db25f8efa (patch) | |
tree | fcc2b9923460485ee4a7616a5b778124af5f626d | |
parent | 25dceb1dea4ee1c23dcc02f3f7f5c0bf345c492c (diff) | |
download | zsh-29503debc778535011f085589d94448db25f8efa.tar.gz zsh-29503debc778535011f085589d94448db25f8efa.tar.xz zsh-29503debc778535011f085589d94448db25f8efa.zip |
51558: Clarify "for" with positional parameters and named reference.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | Doc/Zsh/grammar.yo | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index cc2890b2f..210c4f9c3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,8 @@ 2023-03-11 Bart Schaefer <schaefer@zsh.org> - * 51557: Doc/zsh/mod_ksh93.yo, Src/Modules/ksh93.c: Clarify + * 51558: Doc/Zsh/grammar.yo: Clarify "for" loops + named refs. + + * 51557: Doc/Zsh/mod_ksh93.yo, Src/Modules/ksh93.c: Clarify availability of ksh-mode parameters, improve vi-mode detection. 2023-03-07 Bart Schaefer <schaefer@zsh.org> diff --git a/Doc/Zsh/grammar.yo b/Doc/Zsh/grammar.yo index 1b834f41a..915b93bc0 100644 --- a/Doc/Zsh/grammar.yo +++ b/Doc/Zsh/grammar.yo @@ -190,6 +190,9 @@ use the positional parameters instead of the var(word)s. If any var(name) has been declared as a named reference, the corresponding var(word) is treated as the name of a parameter and var(name) is made a reference to that. +Note that for the positional parameters, this treats the +value of each positional as parameter name rather than +creating a reference to the position. The var(term) consists of one or more newline or tt(;) which terminate the var(word)s, and are optional when the |