From: Richard M. Stallman Date: Tue, 29 Jul 1997 00:53:09 +0000 (+0000) Subject: (sort_args): Check properly for `--'. X-Git-Tag: emacs-20.1~916 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=249443b6915d16b12800ecbd0f1e1eba4fedcb00;p=emacs.git (sort_args): Check properly for `--'. --- diff --git a/src/emacs.c b/src/emacs.c index bf654fe7612..59e25a82ad4 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -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++)