diff options
| author | Peter Stephenson <pws@zsh.org> | 2015-10-27 11:54:19 +0000 |
|---|---|---|
| committer | Peter Stephenson <pws@zsh.org> | 2015-10-27 11:54:19 +0000 |
| commit | b498bd7ce5b8f126f420f8f9fd4946912f8334da (patch) | |
| tree | d85eca8c5af3da0279f6e661e1534664603911e0 /Doc | |
| parent | 36977: note about difficulties of pattern repetitions (diff) | |
| download | zsh-b498bd7ce5b8f126f420f8f9fd4946912f8334da.tar zsh-b498bd7ce5b8f126f420f8f9fd4946912f8334da.tar.gz zsh-b498bd7ce5b8f126f420f8f9fd4946912f8334da.tar.bz2 zsh-b498bd7ce5b8f126f420f8f9fd4946912f8334da.tar.lz zsh-b498bd7ce5b8f126f420f8f9fd4946912f8334da.tar.xz zsh-b498bd7ce5b8f126f420f8f9fd4946912f8334da.tar.zst zsh-b498bd7ce5b8f126f420f8f9fd4946912f8334da.zip | |
36982: Fix bug with (#cN) patterns and remove redundant description.
We need to restore the current count of matches when returning to
match at the point where we previously matched.
Diffstat (limited to 'Doc')
| -rw-r--r-- | Doc/Zsh/expn.yo | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/Doc/Zsh/expn.yo b/Doc/Zsh/expn.yo index 49a0f0d53..5ea8610f2 100644 --- a/Doc/Zsh/expn.yo +++ b/Doc/Zsh/expn.yo @@ -2192,16 +2192,6 @@ 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. - -Note that if the previous group of characters contains wildcards, -results can be unpredictable to the point of being logically incorrect. -It is recommended that the pattern be trimmed to match the minimum -possible. For example, to match a string of the form `tt(1_2_3_)', use -a pattern of the form `tt(LPAR()[[:digit:]]##_+RPAR()LPAR()#c3+RPAR())', not -`tt(LPAR()*_+RPAR()LPAR()#c3+RPAR())'. This arises from the -complicated interaction between attempts to match a number of -repetitions of the whole pattern and attempts to match the wildcard -`tt(*)'. ) vindex(MATCH) vindex(MBEGIN) |
