unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* grep -E instead of egrep?
@ 2006-10-16 10:34 David Kastrup
  2006-10-16 11:20 ` Michaël Cadilhac
  0 siblings, 1 reply; 4+ messages in thread
From: David Kastrup @ 2006-10-16 10:34 UTC (permalink / raw)



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?

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: grep -E instead of egrep?
  2006-10-16 10:34 grep -E instead of egrep? David Kastrup
@ 2006-10-16 11:20 ` Michaël Cadilhac
  2006-10-16 11:25   ` David Kastrup
  2006-10-16 18:47   ` Richard Stallman
  0 siblings, 2 replies; 4+ messages in thread
From: Michaël Cadilhac @ 2006-10-16 11:20 UTC (permalink / raw)
  Cc: emacs-devel


[-- Attachment #1.1: Type: text/plain, Size: 1078 bytes --]

David Kastrup <dak@gnu.org> 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: micha@amessage.be --'           -- Moustic              -  --'

[-- Attachment #1.2: Type: application/pgp-signature, Size: 188 bytes --]

[-- Attachment #2: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: grep -E instead of egrep?
  2006-10-16 11:20 ` Michaël Cadilhac
@ 2006-10-16 11:25   ` David Kastrup
  2006-10-16 18:47   ` Richard Stallman
  1 sibling, 0 replies; 4+ messages in thread
From: David Kastrup @ 2006-10-16 11:25 UTC (permalink / raw)
  Cc: emacs-devel

michael@cadilhac.name (Michaël Cadilhac) writes:

> David Kastrup <dak@gnu.org> 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 ».

Thanks, I did not know about that.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: grep -E instead of egrep?
  2006-10-16 11:20 ` Michaël Cadilhac
  2006-10-16 11:25   ` David Kastrup
@ 2006-10-16 18:47   ` Richard Stallman
  1 sibling, 0 replies; 4+ messages in thread
From: Richard Stallman @ 2006-10-16 18:47 UTC (permalink / raw)
  Cc: emacs-devel

    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.

-E was specified by POSIX, more than a decade ago.
By now, we can assume it is supported.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-10-16 18:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-16 10:34 grep -E instead of egrep? David Kastrup
2006-10-16 11:20 ` Michaël Cadilhac
2006-10-16 11:25   ` David Kastrup
2006-10-16 18:47   ` Richard Stallman

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).