about summary refs log tree commit diff
path: root/Doc/Zsh/expn.yo
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2014-09-06 22:17:56 -0700
committerBarton E. Schaefer <schaefer@zsh.org>2014-09-06 22:17:56 -0700
commitb7ba62871e1bc6a7b88882fea021a8eaaf9150c9 (patch)
tree4c281e32bcda1c135826499aad5011abf07ca26e /Doc/Zsh/expn.yo
parent5a9f3ac773f8b4c701654874c9da5da0d937b91c (diff)
downloadzsh-b7ba62871e1bc6a7b88882fea021a8eaaf9150c9.tar.gz
zsh-b7ba62871e1bc6a7b88882fea021a8eaaf9150c9.tar.xz
zsh-b7ba62871e1bc6a7b88882fea021a8eaaf9150c9.zip
clarify ${(~j.|.)array} example
Diffstat (limited to 'Doc/Zsh/expn.yo')
-rw-r--r--Doc/Zsh/expn.yo9
1 files changed, 5 insertions, 4 deletions
diff --git a/Doc/Zsh/expn.yo b/Doc/Zsh/expn.yo
index b4aa9c715..532672b10 100644
--- a/Doc/Zsh/expn.yo
+++ b/Doc/Zsh/expn.yo
@@ -1126,13 +1126,14 @@ in string arguments to any of the flags described below that
 follow this argument.
 )
 item(tt(~))(
-Force string arguments to any of the flags below that follow within
-the parentheses to be treated as patterns.  Compare with a tt(~)
+Strings inserted into the expansion by any of the flags below are to
+be treated as patterns.  This applies to the string arguments of flags
+that follow tt(~) within the same set of parentheses.  Compare with tt(~)
 outside parentheses, which forces the entire substituted string to
 be treated as a pattern.  Hence, for example,
 example([[ "?" = ${(~j.|.)array} ]])
-with the tt(EXTENDED_GLOB) option set succeeds if and only if tt($array)
-contains the string `tt(?)' as an element.  The argument may be
+treats `tt(|)' as a pattern and succeeds if and only if tt($array)
+contains the string `tt(?)' as an element.  The tt(~) may be
 repeated to toggle the behaviour; its effect only lasts to the
 end of the parenthesised group.
 )