diff options
author | Jim Meyering <jim@meyering.net> | 1996-03-02 02:45:20 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1996-03-02 02:45:20 +0000 |
commit | 3d2a9041f9f5d24567ede5c26ace274c864eeb76 (patch) | |
tree | 0aa508be39c7c3095546617d46b933d7e5792c46 /src | |
parent | aeb85812a16179933526b4143f335f0e084b2a93 (diff) | |
download | coreutils-3d2a9041f9f5d24567ede5c26ace274c864eeb76.tar.xz |
(docolon): Don't use deceptively-named RE_SYNTAX_POSIX_BASIC -- it recognizes
non-BRE \?, \+, and \|. Instead, use RE_SYNTAX_POSIX_MINIMAL_BASIC.
Diffstat (limited to 'src')
-rw-r--r-- | src/expr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expr.c b/src/expr.c index 2f1970da8..f6e13aa21 100644 --- a/src/expr.c +++ b/src/expr.c @@ -423,7 +423,7 @@ docolon (VALUE *sv, VALUE *pv) re_buffer.allocated = 2 * len; re_buffer.buffer = (unsigned char *) xmalloc (re_buffer.allocated); re_buffer.translate = 0; - re_syntax_options = RE_SYNTAX_POSIX_BASIC; + re_syntax_options = RE_SYNTAX_POSIX_MINIMAL_BASIC; errmsg = re_compile_pattern (pv->u.s, len, &re_buffer); if (errmsg) error (2, 0, "%s", errmsg); |