From 249443b6915d16b12800ecbd0f1e1eba4fedcb00 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Tue, 29 Jul 1997 00:53:09 +0000 Subject: [PATCH] (sort_args): Check properly for `--'. --- src/emacs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++) -- 2.39.5