diff options
author | Elliott Hughes <enh@google.com> | 2019-02-19 13:06:31 -0800 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-02-19 17:38:08 -0600 |
commit | cf93c81427f4e553d8de9790995b921c86274271 (patch) | |
tree | 328a3a437bbeadd218993e48ac0af758b54b00c5 | |
parent | 4e7af6aced8573991f9bfc8688be3cb5470a05a7 (diff) | |
download | toybox-cf93c81427f4e553d8de9790995b921c86274271.tar.gz |
grep: add --quiet and --silent synonyms for -q.
--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".)
-rw-r--r-- | toys/posix/grep.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |