diff options
| author | Paul Eggert | 2016-05-07 18:40:10 -0700 |
|---|---|---|
| committer | Paul Eggert | 2016-05-07 18:40:55 -0700 |
| commit | e8bda380bb491eba325e78827eb33c4a0abfbdda (patch) | |
| tree | 78cb41b3b13df6be8688296d76cf57fb23488b2c /lib-src | |
| parent | 4c175a6af5f7935582208e197105cf67aa1b12bd (diff) | |
| download | emacs-e8bda380bb491eba325e78827eb33c4a0abfbdda.tar.gz emacs-e8bda380bb491eba325e78827eb33c4a0abfbdda.zip | |
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) | |||
| 1343 | { | 1343 | { |
| 1344 | char *cmd = | 1344 | char *cmd = |
| 1345 | xmalloc (strlen (tagfile) + whatlen_max + | 1345 | xmalloc (strlen (tagfile) + whatlen_max + |
| 1346 | sizeof "mv..OTAGS;fgrep -v '\t\t' OTAGS >;rm OTAGS"); | 1346 | sizeof "mv..OTAGS;grep -Fv '\t\t' OTAGS >;rm OTAGS"); |
| 1347 | for (i = 0; i < current_arg; ++i) | 1347 | for (i = 0; i < current_arg; ++i) |
| 1348 | { | 1348 | { |
| 1349 | switch (argbuffer[i].arg_type) | 1349 | switch (argbuffer[i].arg_type) |
| @@ -1356,7 +1356,7 @@ main (int argc, char **argv) | |||
| 1356 | } | 1356 | } |
| 1357 | char *z = stpcpy (cmd, "mv "); | 1357 | char *z = stpcpy (cmd, "mv "); |
| 1358 | z = stpcpy (z, tagfile); | 1358 | z = stpcpy (z, tagfile); |
| 1359 | z = stpcpy (z, " OTAGS;fgrep -v '\t"); | 1359 | z = stpcpy (z, " OTAGS;grep -Fv '\t"); |
| 1360 | z = stpcpy (z, argbuffer[i].what); | 1360 | z = stpcpy (z, argbuffer[i].what); |
| 1361 | z = stpcpy (z, "\t' OTAGS >"); | 1361 | z = stpcpy (z, "\t' OTAGS >"); |
| 1362 | z = stpcpy (z, tagfile); | 1362 | z = stpcpy (z, tagfile); |