Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-08-09 20:15:14 +0400
committerDenis Vlasenko <vda.linux@googlemail.com>2008-08-09 20:15:14 +0400
commit3fd15e197e21aa313ce56126ee814f0ebc884dee (patch)
tree38ac32cdea89bff09017eda0a1836e60f2c06749 /libbb/xregcomp.c
parentfb5902ca5cf802557eb1e3c56502a2f5e27242f4 (diff)
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/xregcomp.c b/libbb/xregcomp.c
index abfa35ff1..61efb5bc6 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);
}
}