From: Francesco Potortì Date: Wed, 5 Jun 2002 11:48:07 +0000 (+0000) Subject: * etags.c (main): Use `sort -o TAGFILE TAGFILE' instead of X-Git-Tag: emacs-pretest-21.2.91~241 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=55a13b4b65523148129615cef441bdbb0aff4072;p=emacs.git * etags.c (main): Use `sort -o TAGFILE TAGFILE' instead of `sort TAGFILE -o TAGFILE', as POSIX 1003.1-2001 disallows the latter usage. --- diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index 1dc5d6d34d5..a39807227d2 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog @@ -1,3 +1,9 @@ +2002-05-31 Paul Eggert + + * etags.c (main): Use `sort -o TAGFILE TAGFILE' instead of + `sort TAGFILE -o TAGFILE', as POSIX 1003.1-2001 disallows + the latter usage. + 2002-05-31 Richard M. Stallman * Makefile.in (LIBS_MAIL): Renamed from LIB_MAIL. diff --git a/lib-src/etags.c b/lib-src/etags.c index 8227cfb07cb..bf932a90a8b 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c @@ -1220,7 +1220,7 @@ main (argc, argv) if (update) { char cmd[BUFSIZ]; - sprintf (cmd, "sort %s -o %s", tagfile, tagfile); + sprintf (cmd, "sort -o %s %s", tagfile, tagfile); exit (system (cmd)); } return GOOD;