[Toybox] [PATCH] grep: `-f empty-file` matches nothing, not everything.

enh enh at google.com
Fri Jan 22 16:24:20 PST 2021


This came up trying to build kernels. Worked around for now by
https://android-review.googlesource.com/c/kernel/build/+/1558655. POSIX
says nothing about this, but the GNU grep man page explicitly mentions
this behavior.

Bug: https://issuetracker.google.com/178191979
---
 tests/grep.test   |  8 ++++++++
 toys/posix/grep.c | 25 +++++++++++++++----------
 2 files changed, 23 insertions(+), 10 deletions(-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20210122/f83fa37e/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-grep-f-empty-file-matches-nothing-not-everything.patch
Type: text/x-patch
Size: 2473 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20210122/f83fa37e/attachment-0002.bin>


More information about the Toybox mailing list