sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit 1360f568bb8fcc9881658650263d55166443b167
parent cd73d1b33012414cb76fc64f81964b5fb66b673f
Author: Connor Lane Smith <cls@lubutu.com>
Date:   Sat, 12 May 2012 18:01:27 +0100

grep: better regerror message
Diffstat:
Mgrep.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/grep.c b/grep.c @@ -51,7 +51,7 @@ main(int argc, char *argv[]) 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)