summaryrefslogtreecommitdiff
path: root/Doc/Zsh/mod_private.yo
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/Zsh/mod_private.yo')
-rw-r--r--Doc/Zsh/mod_private.yo3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/Zsh/mod_private.yo b/Doc/Zsh/mod_private.yo
index 184fa2be8..69a5f58be 100644
--- a/Doc/Zsh/mod_private.yo
+++ b/Doc/Zsh/mod_private.yo
@@ -84,6 +84,9 @@ created outside the local scope when it was not previously declared.)
itemiz(An exported private remains in the environment of inner scopes but
appears unset for the current shell in those scopes. Generally, exporting
private parameters should be avoided.)
+itemiz(Declaring a private parameter in a current shell command substitution
+such as `tt(${ )...tt( })' limits the parameter to the scope of the command
+substitution, just as if the parameter were declared in a function.)
enditemize()
Note that this differs from the static scope defined by compiled languages