[Toybox] [PATCH] grep: add -R as well as -r.

enh enh at google.com
Thu Jul 11 12:24:33 PDT 2019


On BSD these are actually the same, and there's a -S that you need in
addition. So strictly this is a behavior change for Android (which is
going from BSD grep to toybox grep), but it's a behavior preserving
change for the AOSP build (which is going from GNU grep to toybox grep),
and the latter actually has a checked-in use of -R where the former
doesn't.
---
 tests/grep.test   | 9 +++++++++
 toys/posix/grep.c | 7 +++++--
 2 files changed, 14 insertions(+), 2 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-grep-add-R-as-well-as-r.patch
Type: text/x-patch
Size: 2958 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20190711/3697b374/attachment-0002.bin>


More information about the Toybox mailing list