[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: grep -E instead of egrep?
From: |
Michaël Cadilhac |
Subject: |
Re: grep -E instead of egrep? |
Date: |
Mon, 16 Oct 2006 13:20:53 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) |
David Kastrup <address@hidden> writes:
> I saw the following change:
>
> 2006-10-15 Lennart Borgman [...]
>
> * progmodes/ada-xref.el (ada-find-in-src-path): Likewise.
> Use grep -E rather than egrep.
>
> Is there a particular reason to prefer "grep -E"? I would have
> thought that "egrep" is much more portable?
The SUSv3 [1] doesn't have any entry for « egrep », and only knows
about « grep -E ». egrep hasn't been « carried forward ».
So you're probably right about egrep being much more portable, because
it's been created before grep -E, but in the future, egrep is meant to
disappear.
Footnotes:
[1] http://www.unix.org/single_unix_specification/
--
/!\ My mail address changed, please update your files accordingly.
| Michaël `Micha' Cadilhac | Si les religions etaient aussi tole- |
| Epita/LRDE Promo 2007 | rantes qu'elles le pretendent, il y |
| http://michael.cadilhac.name | a longtemps qu'il n'y en aurait plus |
`-- - JID: address@hidden --' -- Moustic - --'
pgpfnsS1tA9q6.pgp
Description: PGP signature