Mercurial > emacs
comparison src/emacs.c @ 19030:469abf255dcb
(sort_args): Check properly for `--'.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 29 Jul 1997 00:53:09 +0000 |
parents | b8d11c38bff9 |
children | a4620c4c0881 |
comparison
equal
deleted
inserted
replaced
19029:9ccea8ddd344 | 19030:469abf255dcb |
---|---|
1221 int match, thislen; | 1221 int match, thislen; |
1222 char *equals; | 1222 char *equals; |
1223 | 1223 |
1224 /* If we have found "--", don't consider | 1224 /* If we have found "--", don't consider |
1225 any more arguments as options. */ | 1225 any more arguments as options. */ |
1226 if (argv[from][1] == '-') | 1226 if (argv[from][1] == '-' && argv[from][2] == 0) |
1227 { | 1227 { |
1228 /* Leave the "--", and everything following it, at the end. */ | 1228 /* Leave the "--", and everything following it, at the end. */ |
1229 for (; from < argc; from++) | 1229 for (; from < argc; from++) |
1230 { | 1230 { |
1231 priority[from] = -100; | 1231 priority[from] = -100; |