--- Begin Message ---
- To: Clint Adams <schizo@debian.org>, 253621-done@bugs.debian.org,
- Subject: Re: Bug#253621: [ef]grep check
- From: Russ Allbery <rra@debian.org>
- Date: Sat, 10 Jan 2009 20:38:17 -0800
- Message-id: <87r63axxs6.fsf@windlord.stanford.edu>
- In-reply-to: <20040619233450.GF6546@A-Eskwadraat.nl> (Jeroen van Wolffelaar's message of "Sun\, 20 Jun 2004 01\:34\:51 +0200")
- References: <20040610132750.GA7370@scowler.net> <20040618224309.GH5175@djpig.de> <20040619014311.GB30858@scowler.net> <20040619233450.GF6546@A-Eskwadraat.nl>
Jeroen van Wolffelaar <jeroen@wolffelaar.nl> writes:
> On Fri, Jun 18, 2004 at 09:43:11PM -0400, Clint Adams wrote:
>>> What is the rationale behind this? Could you please explain that
>>> further?
>> Since nowadays egrep and fgrep are just shell scripts that run 'grep
>> -E' or 'grep -F', running grep directly is always faster.
>> Furthermore, I believe that some people are working on POSIXifying base
>> for some embedded applications; grep -[EF] are mandated by POSIX,
>> [ef]grep are not.
>> This is not a major issue, but the only downside of adding it to
>> lintian would be potentially annoying people.
> Which is not the intention, lintian's goal is to warn people about
> often-made mistakes that potentially hurt... Since Debian supports
> egrep/fgrep, well... When we have more fine-grained severities, maybe a
> waring in the lowest severity. Using perl and not /bin/sh in postinst
> also is bad for performance, but we don't warn for that either.
This really feels like a coding style issue to me, not even the sort of
thing Lintian could usefully be pedantic about. egrep and fgrep are
provided by an essential package and are unlikely to ever go away, even in
embedded systems IMO, and they're now hard links so the minor performance
issue doesn't apply. POSIX notes that egrep and fgrep are likely to
continue to be supported for quite some time.
I'm therefore going ahead and closing this bug.
--
Russ Allbery (rra@debian.org) <http://www.eyrie.org/~eagle/>
--- End Message ---