GNU bug report logs - #17156
[PATCH 0/5] Patches to apply

Previous Next

Package: grep;

Reported by: Paolo Bonzini <bonzini <at> gnu.org>

Date: Tue, 1 Apr 2014 09:19:01 UTC

Severity: normal

Tags: patch

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

Full log


Message #31 received at 17156 <at> debbugs.gnu.org (full text, mbox):

From: Paolo Bonzini <bonzini <at> gnu.org>
To: Paul Eggert <eggert <at> cs.ucla.edu>, 17156 <at> debbugs.gnu.org
Cc: meyering <at> fb.com
Subject: Re: bug#17156: [PATCH 2/5] Revert conversion to shell scripts
Date: Tue, 01 Apr 2014 17:08:08 +0200
Il 01/04/2014 16:54, Paul Eggert ha scritto:
> Paolo Bonzini wrote:
>
>> Even though egrep and fgrep have been deprecated, most users
>> will be using them instead of grep -E and -F, on MS Windows systems
>> too where the native command shell is used.
>
> That's not my experience; more and more, people are using grep -E and
> -F.  Regardless, people who lack working shells can switch to grep -E
> and -F, which is what they're supposed to have been doing for decades
> anyway.
>
> If you want these backward-compatibility hacks to be executables rather
> than shell scripts, please make them separate little programs that
> simply do an execlp of 'grep'.  We shouldn't keep going on like we were
> doing, with a tricky setup within 'grep' itself that was a maintenance
> hassle and had subtle bugs.  We should have separation of concerns: the
> 'egrep' and 'fgrep' parts should be cleanly separated from the main part
> of 'grep'.

Unless I misunderstand, this is clearly not possible since "grep" does 
have to deal with -E and -F.

If you want to remove the "matcher" concept (including -Xawk), then I 
very much agree with that.

Paolo




This bug report was last modified 11 years and 48 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.