(sort_args): Check properly for `--'.
authorRichard M. Stallman <rms@gnu.org>
Tue, 29 Jul 1997 00:53:09 +0000 (00:53 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 29 Jul 1997 00:53:09 +0000 (00:53 +0000)
src/emacs.c

index bf654fe..59e25a8 100644 (file)
@@ -1223,7 +1223,7 @@ sort_args (argc, argv)
 
          /* If we have found "--", don't consider
             any more arguments as options.  */
-         if (argv[from][1] == '-')
+         if (argv[from][1] == '-' && argv[from][2] == 0)
            {
              /* Leave the "--", and everything following it, at the end.  */
              for (; from < argc; from++)