diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2016-05-07 18:40:10 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2016-05-07 18:40:55 -0700 |
commit | e8bda380bb491eba325e78827eb33c4a0abfbdda (patch) | |
tree | 78cb41b3b13df6be8688296d76cf57fb23488b2c /lib-src | |
parent | 4c175a6af5f7935582208e197105cf67aa1b12bd (diff) | |
download | emacs-e8bda380bb491eba325e78827eb33c4a0abfbdda.tar.gz |
Prefer grep -E/-F to egrep/fgrep
POSIX marked egrep and fgrep as legacy apps in SUSv2 (1997) and
withdrew them in SUSv3 (2001), and these days grep -E and grep -F
are probably more portable.
* lib-src/etags.c (main):
* lisp/eshell/em-unix.el (eshell-grep, eshell/egrep)
(eshell/fgrep):
* lisp/cedet/semantic/symref.el (semantic-symref-find-text):
* lisp/eshell/esh-var.el (eshell-apply-indices):
* lisp/progmodes/ada-xref.el (ada-xref-search-with-egrep)
(ada-find-in-src-path):
* lisp/textmodes/ispell.el (ispell-grep-command):
(ispell-lookup-words):
Use or document grep -E and grep -F instead of egrep and fgrep.
* lisp/textmodes/ispell.el (ispell-grep-options):
Use -Ei on all platforms, not just MS-Windows.
Diffstat (limited to 'lib-src')
-rw-r--r-- | lib-src/etags.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c index 01e230206ac..e8b71e6b96a 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c @@ -1343,7 +1343,7 @@ main (int argc, char **argv) { char *cmd = xmalloc (strlen (tagfile) + whatlen_max + - sizeof "mv..OTAGS;fgrep -v '\t\t' OTAGS >;rm OTAGS"); + sizeof "mv..OTAGS;grep -Fv '\t\t' OTAGS >;rm OTAGS"); for (i = 0; i < current_arg; ++i) { switch (argbuffer[i].arg_type) @@ -1356,7 +1356,7 @@ main (int argc, char **argv) } char *z = stpcpy (cmd, "mv "); z = stpcpy (z, tagfile); - z = stpcpy (z, " OTAGS;fgrep -v '\t"); + z = stpcpy (z, " OTAGS;grep -Fv '\t"); z = stpcpy (z, argbuffer[i].what); z = stpcpy (z, "\t' OTAGS >"); z = stpcpy (z, tagfile); |