From ae66040f86d7a3a08eb4bc766cf79d20a392a518 Mon Sep 17 00:00:00 2001 From: Andrey Borzenkov Date: Sun, 1 Feb 2009 08:52:47 +0000 Subject: 26504: document that local_options does not restore everything --- Doc/Zsh/options.yo | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Doc/Zsh') 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) )( 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. -- cgit 1.4.1