Hi Bruno,
On Sat, 2006-06-24 at 17:54 +0200, Bruno Cornec wrote:
> 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.Not urgent. It's just that I think you have to pay and/or be a member of POSIX to get access to their standards, so getting access via HP would be neat. But as I said, not urgent. > > 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) Okidoki, I've committed the original patch and replaced all occurrences of both egrep and fgrep in separate sets for mondo and mindi. Hope everything is good. > Now, I have to change my habit ;-) Keeps your brain fit and healthy. (Not that I think you'd have a problem with this.) ;-) > Greetings, > Bruno. Cheers, Andree
signature.asc
Description: This is a digitally signed message part

