diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-10-02 22:41:11 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-10-02 22:41:11 +0000 |
commit | 134abcb5b9ba854fec25051cd3c9f88e760913c5 (patch) | |
tree | 3988d22ca828c20e2fa396d7b021915a5d6f47e6 /posix/bug-regex12.c | |
parent | b77ca0e82754c1b0615e5ca6acd343018ffcb287 (diff) | |
download | glibc-134abcb5b9ba854fec25051cd3c9f88e760913c5.tar glibc-134abcb5b9ba854fec25051cd3c9f88e760913c5.tar.gz glibc-134abcb5b9ba854fec25051cd3c9f88e760913c5.tar.bz2 glibc-134abcb5b9ba854fec25051cd3c9f88e760913c5.zip |
Update.
2003-09-26 Paolo Bonzini <bonzini@gnu.org>
* posix/regcomp.c (parse_sub_exp): Pass RE_CARET_ANCHORS_HERE
for the first token in a subexpression as well.
2003-10-02 Jakub Jelinek <jakub@redhat.com>
* posix/regcomp.c (peek_token): Add 2003-09-20 changes for anchor
handling again.
(parse_reg_exp): Likewise.
* posix/regex.h (RE_CARET_ANCHORS_HERE): Define.
* posix/bug-regex11.c (tests): Add new tests.
* posix/bug-regex12.c (tests): Add new test.
Diffstat (limited to 'posix/bug-regex12.c')
-rw-r--r-- | posix/bug-regex12.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/posix/bug-regex12.c b/posix/bug-regex12.c index d5b5ef106e..0ad063ea05 100644 --- a/posix/bug-regex12.c +++ b/posix/bug-regex12.c @@ -1,5 +1,5 @@ /* Regular expression tests. - Copyright (C) 2002 Free Software Foundation, Inc. + Copyright (C) 2002, 2003 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Jakub Jelinek <jakub@redhat.com>, 2002. @@ -32,7 +32,9 @@ struct int flags, nmatch; } tests[] = { { "^<\\([^~]*\\)\\([^~]\\)[^~]*~\\1\\(.\\).*|=.*\\3.*\\2", - "<,.8~2,~so-|=-~.0,123456789<><", REG_NOSUB, 0, } + "<,.8~2,~so-|=-~.0,123456789<><", REG_NOSUB, 0 }, + /* In ERE, all carets must be treated as anchors. */ + { "a^b", "a^b", REG_EXTENDED, 0 } }; int |