diff options
author | Bart Schaefer <schaefer@zsh.org> | 2023-11-23 13:23:55 -0800 |
---|---|---|
committer | Bart Schaefer <schaefer@zsh.org> | 2023-11-23 13:23:55 -0800 |
commit | fbec213cc5ab0d0316c98bd9ddb883bae3bbdbc5 (patch) | |
tree | e6ea125a6b117e989b7b990b9f8d96ad2b2013b5 /Doc/Zsh/params.yo | |
parent | 7a84713bb7a1527d4ef9bfa8c745d1bfa7da9d59 (diff) | |
download | zsh-fbec213cc5ab0d0316c98bd9ddb883bae3bbdbc5.tar.gz zsh-fbec213cc5ab0d0316c98bd9ddb883bae3bbdbc5.tar.xz zsh-fbec213cc5ab0d0316c98bd9ddb883bae3bbdbc5.zip |
52325: Clarify doc for edge cases of named references and nofork substitution
Unposted whitespace change avoids a parse error in ${ ... } with comments.
Diffstat (limited to 'Doc/Zsh/params.yo')
-rw-r--r-- | Doc/Zsh/params.yo | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Doc/Zsh/params.yo b/Doc/Zsh/params.yo index 5653b3bc9..68df4a16f 100644 --- a/Doc/Zsh/params.yo +++ b/Doc/Zsh/params.yo @@ -748,9 +748,13 @@ vindex(argv) item(tt(argv) <S> <Z>)( Same as tt(*). Assigning to tt(argv) changes the local positional parameters, but tt(argv) is em(not) itself a local parameter. -Deleting tt(argv) with tt(unset) in any function deletes it everywhere, -although only the innermost positional parameter array is deleted (so -tt(*) and tt(@) in other scopes are not affected). +Deleting tt(argv) with tt(unset) in any function deletes it everywhere. +This can be avoided by declaring `tt(local +h argv)' before unsetting. +Even when not so declared, only the innermost positional parameter +array is deleted (so tt(*) and tt(@) in other scopes are not affected). + +A named reference to tt(argv) em(does not) permit a called function to +access the positional parameters of its caller. ) vindex(@) item(tt(@) <S>)( |