Subject: bug#17674: 24.3; "emacs --batch -batch" fails with "Unknown option `-batch'"

From: Andreas Schwab <[email-masked]>
Date: Tue, 03 Jun 2014 11:37:13 +0200

Ulrich Mueller <[email-masked]> 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, [email-masked]
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."