Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: zsh/pcre module docs



This describes the behavior introduced by 15228.
Perhaps there should be a switch to disable
the clobbering of pparams, though I don't believe
perl has a similar feature.

Index: Doc/Zsh/mod_pcre.yo
===================================================================
RCS file: /cvsroot/zsh/zsh/Doc/Zsh/mod_pcre.yo,v
retrieving revision 1.1
diff -u -r1.1 mod_pcre.yo
--- Doc/Zsh/mod_pcre.yo	2001/07/02 19:39:35	1.1
+++ Doc/Zsh/mod_pcre.yo	2001/07/03 16:48:15
@@ -18,5 +18,9 @@
 item(tt(pcre_match) var(string))(
 Returns successfully if tt(string) matches the previously-compiled
 PCRE.
+
+If the expression captures substrings within parentheses,
+tt(pcre_match) will set the positional parameters to
+those substrings, starting with $1 for the first.
 )
 enditem()



Messages sorted by: Reverse Date, Date, Thread, Author