[Toybox] [PATCH] Shut up egrep instead of replacing it

Oliver Webb aquahobbyist at proton.me
Fri Mar 15 22:37:03 PDT 2024


In a thread from just over a month ago, Rob suggested adding 2>/dev/null in calls
to egrep to shut up warnings instead of replace it and bow down to the FSF.

http://lists.landley.net/pipermail/toybox-landley.net/2024-February/030030.html

"can I just defer this until it's actually _removed_ not
deprecated and thus actually breaks builds rather than produces stupid warnings?
Is egrep 2>/dev/null a reasonable option in the short term?"

The following patch does this and gets rid of warnings when building on arch (btw),
and presumably any system with the more recent versions of GNU grep (Mine is 3.11).

-   Oliver Webb <aquahobbyist at proton.me>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Shut-up-egrep-depreciation-warning.patch
Type: text/x-patch
Size: 1887 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20240316/81541d6c/attachment.bin>


More information about the Toybox mailing list