From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24540 invoked from network); 3 Jul 2001 16:51:49 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 3 Jul 2001 16:51:49 -0000 Received: (qmail 25976 invoked by alias); 3 Jul 2001 16:50:36 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 15234 Received: (qmail 25941 invoked from network); 3 Jul 2001 16:50:34 -0000 Date: Tue, 3 Jul 2001 12:51:23 -0400 From: Clint Adams To: zsh-workers@sunsite.dk Subject: PATCH: zsh/pcre module docs Message-ID: <20010703125123.A5242@dman.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i 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()