Andree Leidenfrost said on Sat, Jun 24, 2006 at 09:46:01PM +1000:

> To be honest, I would prefer to standardise on 'grep -E' instead of
> egrep and 'grep -F' instead of fgrep.

Ok why not.

> The reason is that I believe that it is not necessarily clear what egrep
> and fgrep really are, e.g. on Debian sarge and Mandriva 2006 (yep, I
> just installed it in qemu, as that's what you are using... ;-) ) they
> are just scripts that use grep:
> 
> > cat /bin/egrep
> #!/bin/sh
> exec grep -E ${1+"$@"}
> 
> > cat /bin/fgrep
> #!/bin/sh
> exec grep -F ${1+"$@"}

Oh. That's a good reason indeed. Always thought it was a
softlink/hardlink testing its name. I never had the curiosity to look at
t closely. So as it's just a compatibility thing, we have to reove it
for perf.

> In this case, spawning another shell can be quite a bit of overhead
> especially in loops, so not so good, really.
 
Yes. right.

> My understanding is further that egrep and fgrep have been deprecated
> some time ago by POSIX in favour of 'grep -E' and 'grep -F'
> respectively. I don't have access to POSIX standards or changelogs,
> unfortunately. Do you have access via HP maybe (, could be useful for
> other things as well)?

Hummm, need to search. Maybe in libraries here.

> I would be happy to go through SVN stable and change all occurrences
> along with applying the patch itself, if you are happy with this.

If you don't mind and have energy to do it, please do ;-)
(there are more that what I showed previously)

Now, I have to change my habit ;-)

Greetings,
Bruno.
-- 
Linux Profession Lead EMEA  / Open Source Evangelist \        HP C&I EMEA IET
http://www.mondorescue.org / HP/Intel Solution Center \  http://hpintelco.net
Des infos sur Linux?  http://www.HyPer-Linux.org      http://www.hp.com/linux
La musique ancienne?  http://www.musique-ancienne.org http://www.medieval.org

Attachment: pgpbaAPqcUOSJ.pgp
Description: PGP signature

Reply via email to