---
toys/posix/grep.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
From 558668937fa25347a43a27dac50dea0c463741e3 Mon Sep 17 00:00:00 2001
From: Elliott Hughes <[email protected]>
Date: Sun, 24 Feb 2019 09:02:07 -0800
Subject: [PATCH] grep: add missing long synonyms used in AOSP.
---
toys/posix/grep.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/toys/posix/grep.c b/toys/posix/grep.c
index d57e9221..c9a30882 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)*ZzEFHIabhinorsvwclq(quiet)(silent)e*f*C#B#A#m#x[!wx][!EFw]", TOYFLAG_BIN))
+USE_GREP(NEWTOY(grep, "(color):;S(exclude)*M(include)*ZzEFHIab(byte-offset)h(no-filename)ino(only-matching)rsvwcl(files-with-matches)q(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))
@@ -42,7 +42,7 @@ config GREP
-x whole line -z input NUL terminated
display modes: (default: matched line)
- -c count of matching lines -l show matching filenames
+ -c count of matching lines -l show only matching filenames
-o only matching part -q quiet (errors only)
-s silent (no error msg) -Z output NUL terminated
--
2.21.0.rc2.261.ga7da99ff1b-goog
_______________________________________________
Toybox mailing list
[email protected]
http://lists.landley.net/listinfo.cgi/toybox-landley.net