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

Rob Landley rob at landley.net
Sat Jan 23 01:03:35 PST 2021


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?

Rob



More information about the Toybox mailing list