* [PATCH] document that PRIVILEGED and RESTRICTED are not restored by LOCALOPTIONS
@ 2009-02-01 8:44 Andrey Borzenkov
0 siblings, 0 replies; only message in thread
From: Andrey Borzenkov @ 2009-02-01 8:44 UTC (permalink / raw)
To: zsh-workers
[-- Attachment #1: Type: text/plain, Size: 1016 bytes --]
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 #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-02-01 8:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-01 8:44 [PATCH] document that PRIVILEGED and RESTRICTED are not restored by LOCALOPTIONS Andrey Borzenkov
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).