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

enh enh at google.com
Wed Jan 27 16:18:37 PST 2021


On Sat, Jan 23, 2021, 00:50 Rob Landley <rob at landley.net> wrote:

> On 1/22/21 6:24 PM, enh via Toybox wrote:
> > 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
>
> That bug page is a login prompt, but...
>
>   $ echo hello | grep -f /dev/null
>   $ echo hello | toybox grep of /dev/null
>   hello
>
> Yeah, that's a bug.
>
> Try now?
>

AOSP host prebuilts updated. Lgtm, thanks.

Rob
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20210127/79ac3664/attachment-0001.htm>


More information about the Toybox mailing list