summaryrefslogtreecommitdiff
path: root/Doc/Zsh/func.yo
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2006-03-20 11:06:22 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2006-03-20 11:06:22 +0000
commit40df7069cb3f0bcac939eab2337511a5ac5ef510 (patch)
tree979d870a872f3b99f3e59c3ad8e8c75ab20f940f /Doc/Zsh/func.yo
parentb37a0f000058dc91fbc87e803ae91486c8396a9e (diff)
downloadzsh-40df7069cb3f0bcac939eab2337511a5ac5ef510.tar.gz
zsh-40df7069cb3f0bcac939eab2337511a5ac5ef510.zip
22360, 22365: support version 2 of Yodl
Diffstat (limited to 'Doc/Zsh/func.yo')
-rw-r--r--Doc/Zsh/func.yo8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/Zsh/func.yo b/Doc/Zsh/func.yo
index f596afef5..471954c25 100644
--- a/Doc/Zsh/func.yo
+++ b/Doc/Zsh/func.yo
@@ -110,7 +110,7 @@ arguments, at the end.
For example, suppose the autoload file tt(func) contains
-example(func() { print This is func; }
+example(func+LPAR()RPAR() { print This is func; }
print func is initialized
)
@@ -125,7 +125,7 @@ but which loads its own definition by searching tt(fpath), by using
`tt(autoload -X)' within a shell function. For example, the following are
equivalent:
-example(myfunc() {
+example(myfunc+LPAR()RPAR() {
autoload -X
}
myfunc args...)
@@ -203,7 +203,7 @@ Programs terminated by uncaught signals typically return the status 128
plus the signal number. Hence the following causes the handler for
tt(SIGINT) to print a message, then mimic the usual effect of the signal.
-example(TRAPINT() {
+example(TRAPINT+LPAR()RPAR() {
print "Caught SIGINT, aborting."
return $(( 128 + $1 ))
})
@@ -239,7 +239,7 @@ run in the environment of the calling process, rather than in their own
function environment. Apart from the difference in calling procedure and
the fact that the function form appears in lists of functions, the forms
-example(TRAPNAL() {
+example(TRAPNAL+LPAR()RPAR() {
# code
})