]> git.eshelyaron.com Git - emacs.git/commitdiff
(main): Use `sort -o TAGFILE TAGFILE' instead of `sort TAGFILE -o
authorPaul Eggert <eggert@twinsun.com>
Sat, 23 Mar 2002 06:48:31 +0000 (06:48 +0000)
committerPaul Eggert <eggert@twinsun.com>
Sat, 23 Mar 2002 06:48:31 +0000 (06:48 +0000)
TAGFILE', as POSIX 1003.1-2001 disallows the latter usage.

lib-src/etags.c

index 98c3440704407876de7a174396e24230d2e0f7c8..3632e230f2d331150e42b327743770bc59f87054 100644 (file)
@@ -1236,7 +1236,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;