summary refs log tree commit diff
path: root/Doc/Zsh
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-07-27 21:51:32 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-07-27 21:51:32 +0000
commita81e5a609e6d73a83c5a55a3f64f760c6fb45b92 (patch)
tree33ddedca1bc49c88067c11f6f20a740f04aeb240 /Doc/Zsh
parent60a05cf85aae737070f27b0e3edf36c840d2b17d (diff)
downloadzsh-a81e5a609e6d73a83c5a55a3f64f760c6fb45b92.tar.gz
zsh-a81e5a609e6d73a83c5a55a3f64f760c6fb45b92.tar.xz
zsh-a81e5a609e6d73a83c5a55a3f64f760c6fb45b92.zip
add (#cN,M) globbing flag
Diffstat (limited to 'Doc/Zsh')
-rw-r--r--Doc/Zsh/expn.yo12
1 files changed, 12 insertions, 0 deletions
diff --git a/Doc/Zsh/expn.yo b/Doc/Zsh/expn.yo
index c3c6d5baf..2460f148e 100644
--- a/Doc/Zsh/expn.yo
+++ b/Doc/Zsh/expn.yo
@@ -1636,6 +1636,18 @@ item(tt(B))(
 Deactivate backreferences, negating the effect of the tt(b) flag from that
 point on.
 )
+item(tt(c)var(N)tt(,)var(M))(
+The flag tt(LPAR()#c)var(N)tt(,)var(M)tt(RPAR()) can be used anywhere
+that the tt(#) or tt(##) operators can be used; it cannot be combined
+with other globbing flags and a bad pattern error occurs if it is
+misplaced.  It is equivalent to the form tt({)var(N)tt(,)var(M)tt(}) in
+regular expressions.  The previous character or group is required to
+match between var(N) and var(M) times, inclusive.  The form
+tt(LPAR()#c)var(N)tt(RPAR()) requires exactly tt(N) matches;
+tt(LPAR()#c,)var(M)tt(RPAR()) is equivalent to specifying var(N) as 0;
+tt(LPAR()#c)var(N)tt(,RPAR()) specifies that there is no maximum limit
+on the number of matches.
+)
 item(tt(m))(
 Set references to the match data for the entire string matched; this is
 similar to backreferencing and does not work in filename generation.  The