Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH] document that PRIVILEGED and RESTRICTED are not restored by LOCALOPTIONS



Index: Doc/Zsh/options.yo
===================================================================
RCS file: /cvsroot/zsh/zsh/Doc/Zsh/options.yo,v
retrieving revision 1.69
diff -u -p -r1.69 options.yo
--- Doc/Zsh/options.yo  18 Dec 2008 09:49:04 -0000      1.69
+++ Doc/Zsh/options.yo  1 Feb 2009 08:43:41 -0000
@@ -1109,8 +1109,9 @@ temporarily to the name of the function/
 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.

Attachment: signature.asc
Description: This is a digitally signed message part.



Messages sorted by: Reverse Date, Date, Thread, Author