Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] Document the SHORT_LOOP 'function' syntax.
- X-seq: zsh-workers 40744
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] Document the SHORT_LOOP 'function' syntax.
- Date: Sun, 5 Mar 2017 22:10:56 +0000
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=date:from:message-id:subject:to :x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=7C2 7bwUYLmV0THoXaRY6q4SwtDA=; b=Y+cD4B3tJdq8gk9VxCeEfqnm3AYIKCyOvJ3 r3o3mV9AlYIay12Xu9ZB8kdgeJyMaxleV685pjAX/ilF0r9n3vcNxM3PGoYLfbZ5 10fAgFN+IHHxhEx3Pi958K0Y/aydR0JTyK/RQMhdRxdKLdvAnPzfDQQQPK6fgqu8 ISACIjtk=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=date:from:message-id:subject:to :x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s=smtpout; bh=7C 27bwUYLmV0THoXaRY6q4SwtDA=; b=AHoV/kmdbmuWk0QS19d5DLzM4dNg0n5S29 xACUKn68nTU4oiSWrm4TS2UmXMcB5ZdUsf+UR2KJGWoFEoF+FHgyxYuDiH5V+kew x95u4nTXUfS76JXq4NT1uzVqFOl20BYoxMOs1JFB18JqWj19tOEaN5bfDI7f6oZ0 7Or8dcbxc=
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
It's already mentioned in passing in zshoptions(1).
---
Doc/Zsh/grammar.yo | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Doc/Zsh/grammar.yo b/Doc/Zsh/grammar.yo
index 2a76964..463ac88 100644
--- a/Doc/Zsh/grammar.yo
+++ b/Doc/Zsh/grammar.yo
@@ -461,6 +461,9 @@ item(tt(select) var(name) [ tt(in) var(word) ... var(term) ] var(sublist))(
where var(term) is at least one newline or tt(;).
A short form of tt(select).
)
+item(tt(function) var(word) ... [ tt(+LPAR()+RPAR()) ] [ var(term) ] var(sublist))(
+This is a short form of tt(function).
+)
enditem()
texinode(Reserved Words)(Errors)(Alternate Forms For Complex Commands)(Shell Grammar)
sect(Reserved Words)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author