GNU bug report logs - #17674
24.3; "emacs --batch -batch" fails with "Unknown option `-batch'"

Previous Next

Package: emacs;

Reported by: Ulrich Mueller <ulm <at> gentoo.org>

Date: Tue, 3 Jun 2014 09:18:02 UTC

Severity: minor

Found in version 24.3

To reply to this bug, email your comments to 17674 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#17674; Package emacs. (Tue, 03 Jun 2014 09:18:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ulrich Mueller <ulm <at> gentoo.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 03 Jun 2014 09:18:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ulrich Mueller <ulm <at> gentoo.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3; "emacs --batch -batch" fails with "Unknown option `-batch'"
Date: Tue, 3 Jun 2014 11:16:48 +0200
$ 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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17674; Package emacs. (Tue, 03 Jun 2014 09:38:02 GMT) Full text and rfc822 format available.

Message #8 received at 17674 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> suse.de>
To: Ulrich Mueller <ulm <at> gentoo.org>
Cc: 17674 <at> debbugs.gnu.org
Subject: Re: bug#17674: 24.3;
 "emacs --batch -batch" fails with "Unknown option `-batch'"
Date: Tue, 03 Jun 2014 11:37:13 +0200
Ulrich Mueller <ulm <at> 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 <at> suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."




This bug report was last modified 11 years and 12 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.