bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#60257: please fix warnings from egrep and fgrep


From: Bruce Dubbs
Subject: bug#60257: please fix warnings from egrep and fgrep
Date: Thu, 22 Dec 2022 13:35:19 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.0

On 12/22/22 09:16, Thomas Wolff wrote:
These tools spill out warnings that are irritating almost everyone, moreover, they are threatening to be removed. There was some discussion about this earlier this year, but with no consolidated outcome, so I'd like to raise the issue again. Some weird and wrong arguments were presented; first, many GNU tools do have POSIX extensions, including grep.
Second and particularly:
egrep and fgrep were not entirely portable even before POSIX deprecated them in 
2001
grep -E and grep -F were not portable either! There are legacy systems which had egrep and fgrep but did not have grep options -E and -F. So all this achieves is really to annoy thousands of people and to waste time of hundreds of package maintainers. Please have mercy with the community. Give us the comfort of not being bothered when using egrep and fgrep in the future, and if it is as a Christmas present.
Thanks
Thomas

If building from source, workaround with:

  sed -i "s/echo/#echo/" src/egrep.sh

before configure.

If not use:
  sed -i "s/echo/#echo/" /usr/bin/[ef]grep

  -- Bruce Dubbs
     linuxfromscratch.org





reply via email to

[Prev in Thread] Current Thread [Next in Thread]