diff options
author | Denis Vlasenko | 2008-08-09 16:15:14 +0000 |
---|---|---|
committer | Denis Vlasenko | 2008-08-09 16:15:14 +0000 |
commit | 3fd15e197e21aa313ce56126ee814f0ebc884dee (patch) | |
tree | 38ac32cdea89bff09017eda0a1836e60f2c06749 /libbb/xregcomp.c | |
parent | fb5902ca5cf802557eb1e3c56502a2f5e27242f4 (diff) | |
download | busybox-3fd15e197e21aa313ce56126ee814f0ebc884dee.zip busybox-3fd15e197e21aa313ce56126ee814f0ebc884dee.tar.gz |
grep: option to use GNU regex matching instead of POSIX one.
This fixes problems with NULs in files being scanned, but
costs +800 bytes. The same can be done to sed (TODO).
Diffstat (limited to 'libbb/xregcomp.c')
-rw-r--r-- | libbb/xregcomp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/xregcomp.c b/libbb/xregcomp.c index abfa35f..61efb5b 100644 --- a/libbb/xregcomp.c +++ b/libbb/xregcomp.c @@ -27,6 +27,6 @@ void FAST_FUNC xregcomp(regex_t *preg, const char *regex, int cflags) { char *errmsg = regcomp_or_errmsg(preg, regex, cflags); if (errmsg) { - bb_error_msg_and_die("xregcomp: %s", errmsg); + bb_error_msg_and_die("bad regex '%s': %s", regex, errmsg); } } |