about summary refs log tree commit diff
path: root/Doc
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-09-11 12:49:05 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-09-11 12:49:05 +0000
commit8bb15c139248c9a4c4c0b2a053444e24ab8fc4f4 (patch)
tree46d30c5cf554f94d3aa883dc6b2f2e24ceab0a80 /Doc
parentf95570c403aa073139c4b9fde5fd7c769d69fc6d (diff)
downloadzsh-8bb15c139248c9a4c4c0b2a053444e24ab8fc4f4.tar.gz
zsh-8bb15c139248c9a4c4c0b2a053444e24ab8fc4f4.tar.xz
zsh-8bb15c139248c9a4c4c0b2a053444e24ab8fc4f4.zip
25641: add emulation option (NO_)MULTI_FUNC_DEF
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Zsh/options.yo8
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/Zsh/options.yo b/Doc/Zsh/options.yo
index defb9c08c..5c7b29cfd 100644
--- a/Doc/Zsh/options.yo
+++ b/Doc/Zsh/options.yo
@@ -1133,6 +1133,14 @@ fn+LPAR()RPAR() { setopt localtraps; trap '' INT; sleep 3; })
 
 will restore normally handling of tt(SIGINT) after the function exits.
 )
+pindex(MULTI_FUNC_DEF)
+item(tt(MULTI_FUNC_DEF) <Z>)(
+Allow definitions of multiple functions at once in the form `tt(fn1
+fn2)var(...)tt(LPAR()RPAR())'; if the option is not set, this causes
+a parse error.  Definition of multiple functions with the tt(function)
+keyword is always allowed.  Multiple function definitions are not often
+used and can cause obscure errors.
+)
 pindex(MULTIOS)
 item(tt(MULTIOS) <Z>)(
 Perform implicit bf(tee)s or bf(cat)s when multiple