diff options
author | Andrey Borzenkov <bor@users.sourceforge.net> | 2009-02-01 08:52:47 +0000 |
---|---|---|
committer | Andrey Borzenkov <bor@users.sourceforge.net> | 2009-02-01 08:52:47 +0000 |
commit | ae66040f86d7a3a08eb4bc766cf79d20a392a518 (patch) | |
tree | 2c31ec80be25cdb6609a0642a74d91eb3b6ffe05 /Doc/Zsh | |
parent | debd4b826ab92133bc4bb94ebdc42a28b82bfb9f (diff) | |
download | zsh-ae66040f86d7a3a08eb4bc766cf79d20a392a518.tar.gz zsh-ae66040f86d7a3a08eb4bc766cf79d20a392a518.tar.xz zsh-ae66040f86d7a3a08eb4bc766cf79d20a392a518.zip |
26504: document that local_options does not restore everything
Diffstat (limited to 'Doc/Zsh')
-rw-r--r-- | Doc/Zsh/options.yo | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/Zsh/options.yo b/Doc/Zsh/options.yo index 4bd82f324..d8c0bb315 100644 --- a/Doc/Zsh/options.yo +++ b/Doc/Zsh/options.yo @@ -1109,8 +1109,9 @@ temporarily to the name of the function/script. pindex(LOCAL_OPTIONS) item(tt(LOCAL_OPTIONS) <K>)( If this option is set at the point of return from a shell function, -all the options (including this one) which were in force upon entry to -the function are restored. Otherwise, only this option and the +most options (including this one) which were in force upon entry to +the function are restored; options that are not restored are +tt(PRIVILEGED) and tt(RESTRICTED). Otherwise, only this option and the tt(XTRACE) and tt(PRINT_EXIT_VALUE) options are restored. Hence if this is explicitly unset by a shell function the other options in force at the point of return will remain so. |