mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-29 17:31:02 +01:00
31444: Basic code for enable/disable -p
This commit is contained in:
parent
e36e7d9ade
commit
fdf2867e5f
8 changed files with 313 additions and 12 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue