void-packages/srcpkgs/grep/patches/efgrep-remove-warning.patch
Michal Vasilek ef5ffe4d69 grep: update to 3.8.
* patch out problematic warnings in egrep and fgrep
2022-09-21 19:24:56 +02:00

10 lines
291 B
Diff

since 3.8, egrep and fgrep print a warning which can cause many issues with
programs not expecting this behaviour
--- a/src/egrep.sh
+++ b/src/egrep.sh
@@ -1,4 +1,3 @@
#!@SHELL@
cmd=${0##*/}
-echo "$cmd: warning: $cmd is obsolescent; using @grep@ @option@" >&2
exec @grep@ @option@ "$@"