From 1360f568bb8fcc9881658650263d55166443b167 Mon Sep 17 00:00:00 2001 From: Connor Lane Smith Date: Sat, 12 May 2012 18:01:27 +0100 Subject: [PATCH] grep: better regerror message --- grep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grep.c b/grep.c index a5e134d..f244603 100644 --- 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)