diff options
author | ericm <ericm@noemail.net> | 2000-09-20 01:50:37 (GMT) |
---|---|---|
committer | ericm <ericm@noemail.net> | 2000-09-20 01:50:37 (GMT) |
commit | 96af005e0610a42493f435964fbff6b6141c9f96 (patch) | |
tree | 898c1d7c089fbde4ddba5e1439c89644c8372642 /generic/tclCmdMZ.c | |
parent | 4908bc4d91222a72e791a6c43fb40100b44b0c31 (diff) | |
download | tcl-96af005e0610a42493f435964fbff6b6141c9f96.zip tcl-96af005e0610a42493f435964fbff6b6141c9f96.tar.gz tcl-96af005e0610a42493f435964fbff6b6141c9f96.tar.bz2 |
* generic/tclCmdMZ.c (Tcl_RegexpObjCmd): When using -all, all
attempts after the first to match the regexp against the string
should include the TCL_REG_NOTBOL flag, to avoid erroneously
matching ^ in the middle of the string. Added code to set this
flag after the first pass through the matching loop. [Bug: 6284].
FossilOrigin-Name: 9c141af9b52fb6038a2a4bfa2d38319e72b54c45
Diffstat (limited to 'generic/tclCmdMZ.c')
-rw-r--r-- | generic/tclCmdMZ.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tclCmdMZ.c b/generic/tclCmdMZ.c index 9fa3166..1e99419 100644 --- a/generic/tclCmdMZ.c +++ b/generic/tclCmdMZ.c @@ -13,7 +13,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclCmdMZ.c,v 1.29 2000/09/06 18:31:36 hobbs Exp $ + * RCS: @(#) $Id: tclCmdMZ.c,v 1.30 2000/09/20 01:50:38 ericm Exp $ */ #include "tclInt.h" @@ -433,6 +433,7 @@ Tcl_RegexpObjCmd(dummy, interp, objc, objv) } offset += info.matches[0].end; all++; + eflags |= TCL_REG_NOTBOL; if (offset >= stringLength) { break; } |