1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-02 22:11:54 +02:00

unposted, c.f. 30465: add index entries and cross-references

for match, mbegin, mend, MATCH, MBEGIN, MEND
This commit is contained in:
Peter Stephenson 2012-05-03 09:20:09 +00:00
parent 8ac002dab1
commit ff7644409a
3 changed files with 28 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2012-05-03 Peter Stephenson <pws@csr.com>
* unposted, see 30465: Doc/Zsh/expn.yo, Doc/Zsh/params.yo: add
index entries and cross-references for matching parameters.
2012-05-02 Mikael Magnusson <mikachu@gmail.com>
* 30461, 30462 (tweaked): Functions/Prompts/promptinit,
@ -16271,5 +16276,5 @@
*****************************************************
* This is used by the shell to define $ZSH_PATCHLEVEL
* $Revision: 1.5647 $
* $Revision: 1.5648 $
*****************************************************

View file

@ -1967,6 +1967,9 @@ item(tt(I))(
Case sensitive: locally negates the effect of tt(i) or tt(l) from
that point on.
)
vindex(match)
vindex(mbegin)
vindex(mend)
item(tt(b))(
Activate backreferences for parenthesised groups in the pattern;
this does not work in filename generation. When a pattern with a set of
@ -2035,6 +2038,9 @@ 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.
)
vindex(MATCH)
vindex(MBEGIN)
vindex(MEND)
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

View file

@ -1103,6 +1103,22 @@ whose value is not used by the shell. The tt(manpath)
array can be useful, however, since setting it also sets
tt(MANPATH), and vice versa.
)
xitem(tt(match))
xitem(tt(mbegin))
item(tt(mend))(
Arrays set by the shell when the tt(b) globbing flag is used in pattern
matches. See the subsection em(Globbing flags) in
ifzman(the documentation for em(Filename Generation) in zmanref(zshexpn))\
ifnzman(noderef(Filename Generation)).
)
xitem(tt(MATCH))
xitem(tt(MBEGIN))
item(tt(MEND))(
Set by the shell when the tt(m) globbing flag is used in pattern
matches. See the subsection em(Globbing flags) in
ifzman(the documentation for em(Filename Generation) in zmanref(zshexpn))\
ifnzman(noderef(Filename Generation)).
)
vindex(module_path)
vindex(MODULE_PATH)
item(tt(module_path) <S> <Z> (tt(MODULE_PATH) <S>))(