diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-09-03 12:37:35 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-09-03 12:37:35 +0000 |
commit | 6563b9d181c1ee28db375ac1c3568cf334cf44ce (patch) | |
tree | 182f4aea3b68a049016d204203b80d52a67fd863 /Doc/Zsh/params.yo | |
parent | e585af89d95d20f3bd42234631f40df44f2b5aab (diff) | |
download | zsh-6563b9d181c1ee28db375ac1c3568cf334cf44ce.tar.gz zsh-6563b9d181c1ee28db375ac1c3568cf334cf44ce.tar.xz zsh-6563b9d181c1ee28db375ac1c3568cf334cf44ce.zip |
zsh-workers/7636
Diffstat (limited to 'Doc/Zsh/params.yo')
-rw-r--r-- | Doc/Zsh/params.yo | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/Doc/Zsh/params.yo b/Doc/Zsh/params.yo index 65c8e7599..3b7857471 100644 --- a/Doc/Zsh/params.yo +++ b/Doc/Zsh/params.yo @@ -203,15 +203,17 @@ tt(unset) can be used to delete a parameter while it is still in scope; any outer parameter of the same name remains hidden. Special parameters may also be made local; they retain their special -attributes. This may have unexpected effects. Firstly, there is no -default value, so if there is no assigment at the point the variable is -made local, it will be set to an empty value (or zero in the case of -integers). Secondly, special parameters which are made local will not be -exported (as with other parameters), so that the global value of the -parameter remains present in the environment if it is already there. This -should be particularly noted in the case of tt(PATH): the shell will use -the local version of tt(PATH) for finding programmes, but programmes using -the shell's environment will inherit the global version. The following: +attributes unless either the existing or the newly-created parameter +has the tt(-h) (hide) attribute. This may have unexpected effects. +Firstly, there is no default value, so if there is no assigment at the +point the variable is made local, it will be set to an empty value (or zero +in the case of integers). Secondly, special parameters which are made +local will not be exported (as with other parameters), so that the global +value of the parameter remains present in the environment if it is already +there. This should be particularly noted in the case of tt(PATH): the +shell will use the local version of tt(PATH) for finding programmes, but +programmes using the shell's environment will inherit the global version. +The following: example(typeset PATH=/new/directory:$PATH) |