[hackers] [sbase] grep: better regerror message || Connor Lane Smith
changeset: 115:1297361049c3
tag: tip
user: Connor Lane Smith <cls_AT_lubutu.com>
date: Sat May 12 18:01:27 2012 +0100
files: grep.c
description:
grep: better regerror message
diff -r c52aecfc53fe -r 1297361049c3 grep.c
--- a/grep.c Sat May 12 17:54:36 2012 +0100
+++ b/grep.c Sat May 12 18:01:27 2012 +0100
_AT_@ -51,7 +51,7 @@
char buf[BUFSIZ];
regerror(n, &preg, buf, sizeof buf);
- enprintf(Error, "%s\n", buf);
+ enprintf(Error, "invalid pattern: %s\n", buf);
}
many = (argc > optind+1);
if(optind == argc)
Received on Sat May 12 2012 - 19:01:30 CEST
This archive was generated by hypermail 2.3.0
: Sat May 12 2012 - 19:12:05 CEST