[Toybox] [PATCH] grep: add --quiet and --silent synonyms for -q.
enh
enh at google.com
Tue Feb 19 13:22:56 PST 2019
--quiet is used 3x more than --silent in my corpus, but they're both
used surprisingly often. (Surprising to someone who thinks -q is part of
the core set of grep options that "everybody knows".)
---
toys/posix/grep.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/toys/posix/grep.c b/toys/posix/grep.c
index 42a4c0f1..d57e9221 100644
--- a/toys/posix/grep.c
+++ b/toys/posix/grep.c
@@ -10,7 +10,7 @@
* echo hello | grep -f </dev/null
*
-USE_GREP(NEWTOY(grep,
"(color):;S(exclude)*M(include)*ZzEFHIabhinorsvwclqe*f*C#B#A#m#x[!wx][!EFw]",
TOYFLAG_BIN))
+USE_GREP(NEWTOY(grep,
"(color):;S(exclude)*M(include)*ZzEFHIabhinorsvwclq(quiet)(silent)e*f*C#B#A#m#x[!wx][!EFw]",
TOYFLAG_BIN))
USE_EGREP(OLDTOY(egrep, grep, TOYFLAG_BIN))
USE_FGREP(OLDTOY(fgrep, grep, TOYFLAG_BIN))
--
2.21.0.rc0.258.g878e2cd30e-goog
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-grep-add-quiet-and-silent-synonyms-for-q.patch
Type: text/x-patch
Size: 1050 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20190219/806eb152/attachment-0002.bin>
More information about the Toybox
mailing list