diff options
author | Mikael Magnusson <mikachu@gmail.com> | 2011-08-14 23:19:22 +0000 |
---|---|---|
committer | Mikael Magnusson <mikachu@gmail.com> | 2011-08-14 23:19:22 +0000 |
commit | 512660352feb89ae046639a7ebf6d43e888c17d9 (patch) | |
tree | 8cf53fb0959d6d0d65fd2d87be1bb0104432fcec /Doc/Zsh | |
parent | 7db1a0cf3d6b93b8a434e1add6d923b0e6047e00 (diff) | |
download | zsh-512660352feb89ae046639a7ebf6d43e888c17d9.tar.gz zsh-512660352feb89ae046639a7ebf6d43e888c17d9.tar.xz zsh-512660352feb89ae046639a7ebf6d43e888c17d9.zip |
29504: note when (#cN,M) can't be used in place of # or ##.
Diffstat (limited to 'Doc/Zsh')
-rw-r--r-- | Doc/Zsh/expn.yo | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/Doc/Zsh/expn.yo b/Doc/Zsh/expn.yo index 4c85d3119..adbc662e6 100644 --- a/Doc/Zsh/expn.yo +++ b/Doc/Zsh/expn.yo @@ -1999,15 +1999,16 @@ 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. +that the tt(#) or tt(##) operators can be used except in the expressions +`tt((*/)#)' and `tt((*/)##)' in filename generation, where `tt(/)' +has special meaning; 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 |