* bug#17674: 24.3; "emacs --batch -batch" fails with "Unknown option `-batch'"
@ 2014-06-03 9:16 Ulrich Mueller
2014-06-03 9:37 ` Andreas Schwab
0 siblings, 1 reply; 2+ messages in thread
From: Ulrich Mueller @ 2014-06-03 9:16 UTC (permalink / raw)
To: 17674
$ emacs --batch -batch; echo $?
Unknown option `-batch'
255
$ emacs -batch --batch; echo $?
Unknown option `--batch'
255
$ emacs --batch --batch; echo $?
0
$ emacs -batch -batch; echo $?
0
Same problem for --no-window-system -no-window-system. It doesn't
occur for all options though, e.g. --no-init-file -no-init-file
doesn't cause an error.
This is an issue mainly when calling Emacs from a Makefile, where
options from several variables (like AM_ELCFLAGS and ELCFLAGS) can be
accumulated.
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#17674: 24.3; "emacs --batch -batch" fails with "Unknown option `-batch'"
2014-06-03 9:16 bug#17674: 24.3; "emacs --batch -batch" fails with "Unknown option `-batch'" Ulrich Mueller
@ 2014-06-03 9:37 ` Andreas Schwab
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Schwab @ 2014-06-03 9:37 UTC (permalink / raw)
To: Ulrich Mueller; +Cc: 17674
Ulrich Mueller <ulm@gentoo.org> writes:
> $ emacs --batch -batch; echo $?
> Unknown option `-batch'
> 255
> $ emacs -batch --batch; echo $?
> Unknown option `--batch'
> 255
Also emacs --bat --batch. sort_args in emacs.c can only remove
duplicates that match exactly. All arguments handled in main are
affected.
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-06-03 9:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-03 9:16 bug#17674: 24.3; "emacs --batch -batch" fails with "Unknown option `-batch'" Ulrich Mueller
2014-06-03 9:37 ` Andreas Schwab
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.