diff options
author | Peter Stephenson <pws@zsh.org> | 2015-04-29 15:54:49 +0100 |
---|---|---|
committer | Peter Stephenson <pws@zsh.org> | 2015-04-29 15:54:49 +0100 |
commit | bf258a1c07a9cf1119f83d1d15310b02b94f4d67 (patch) | |
tree | af7f12d596efe96213fd12ed3328e9342fc59107 /Doc/Zsh | |
parent | c96a993d51e3e5958c8161d0dbe86cb43bcc52c1 (diff) | |
download | zsh-bf258a1c07a9cf1119f83d1d15310b02b94f4d67.tar.gz zsh-bf258a1c07a9cf1119f83d1d15310b02b94f4d67.tar.xz zsh-bf258a1c07a9cf1119f83d1d15310b02b94f4d67.zip |
34992: POSIX fix for readonly variables.
With POSIXBUILTINS, variables can be marked readonly if unset. Also, variables can't have the readonly flag removed.
Diffstat (limited to 'Doc/Zsh')
-rw-r--r-- | Doc/Zsh/builtins.yo | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/Zsh/builtins.yo b/Doc/Zsh/builtins.yo index dd5a80fe8..985d19e11 100644 --- a/Doc/Zsh/builtins.yo +++ b/Doc/Zsh/builtins.yo @@ -1933,6 +1933,13 @@ item(tt(-r))( The given var(name)s are marked readonly. Note that if var(name) is a special parameter, the readonly attribute can be turned on, but cannot then be turned off. + +If the tt(POSIX_BUILTINS) option is set, the readonly attribute is +more restrictive: unset variables can be marked readonly and cannot then +be set; furthermore, the readonly attribute cannot be removed from any +variable. Note that in zsh (unlike other shells) it is still possible +to create a local variable of the same name as this is considered a +different variable (though this variable, too, can be marked readonly). ) item(tt(-t))( Tags the named parameters. Tags have no special meaning to the shell. |