From b7ba62871e1bc6a7b88882fea021a8eaaf9150c9 Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Sat, 6 Sep 2014 22:17:56 -0700 Subject: clarify ${(~j.|.)array} example --- Doc/Zsh/expn.yo | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'Doc/Zsh/expn.yo') 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. ) -- cgit 1.4.1