From 29503debc778535011f085589d94448db25f8efa Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Sat, 11 Mar 2023 13:22:10 -0800 Subject: 51558: Clarify "for" with positional parameters and named reference. --- Doc/Zsh/grammar.yo | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Doc/Zsh') 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 -- cgit 1.4.1