about summary refs log tree commit diff
path: root/Doc/Zsh/options.yo
diff options
context:
space:
mode:
authorPeter Stephenson <p.w.stephenson@ntlworld.com>2013-06-13 18:38:33 +0100
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2013-06-13 18:38:33 +0100
commitfdf2867e5f08809ff3fccc78fb6df13a196e3efc (patch)
treea52def21ef686d6f4759afc778088a80a659a4cd /Doc/Zsh/options.yo
parente36e7d9adea7b8eab8f561e180f78b9f8e4eee5c (diff)
downloadzsh-fdf2867e5f08809ff3fccc78fb6df13a196e3efc.tar.gz
zsh-fdf2867e5f08809ff3fccc78fb6df13a196e3efc.tar.xz
zsh-fdf2867e5f08809ff3fccc78fb6df13a196e3efc.zip
31444: Basic code for enable/disable -p
Diffstat (limited to 'Doc/Zsh/options.yo')
-rw-r--r--Doc/Zsh/options.yo13
1 files changed, 13 insertions, 0 deletions
diff --git a/Doc/Zsh/options.yo b/Doc/Zsh/options.yo
index 60892dd8b..ec862321e 100644
--- a/Doc/Zsh/options.yo
+++ b/Doc/Zsh/options.yo
@@ -1618,6 +1618,19 @@ A shell function can also guarantee itself a known shell configuration
 with a formulation like `tt(emulate -L zsh)'; the tt(-L) activates
 tt(LOCAL_OPTIONS).
 )
+pindex(LOCAL_PATTERNS)
+pindex(NO_LOCAL_PATTERNS)
+pindex(LOCALPATTERNS)
+pindex(NOLOCALPATTERNS)
+item(tt(LOCAL_PATTERNS))(
+If this option is set at the point of return from a shell function,
+the state of pattern disables, as set with the builtin command
+`tt(disable -p)', is restored to what it was when the function was
+entered.  The behaviour of this option is similar to the effect
+of tt(LOCAL_OPTIONS) on options; hence `tt(emulate -L sh)' (or
+indeed any other emulation with the tt(-L) option) activates
+tt(LOCAL_PATTERNS).
+)
 pindex(LOCAL_TRAPS)
 pindex(NO_LOCAL_TRAPS)
 pindex(LOCALTRAPS)