]> git.eshelyaron.com Git - emacs.git/commitdiff
Reinstate the following change from 2002-03-22, which was
authorPaul Eggert <eggert@twinsun.com>
Mon, 27 May 2002 06:50:39 +0000 (06:50 +0000)
committerPaul Eggert <eggert@twinsun.com>
Mon, 27 May 2002 06:50:39 +0000 (06:50 +0000)
inadvertently lost on 2002-04-13.

(main): Use `sort -o TAGFILE TAGFILE' instead of `sort TAGFILE -o
TAGFILE', as POSIX 1003.1-2001 disallows the latter usage.

lib-src/etags.c

index 0ba1ccf861f767db70447f68c3daed51b577d50e..b6f1c1b6ce1d0044ed8bff43bafab67248085c0b 100644 (file)
@@ -1255,7 +1255,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;