unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Ulrich Mueller <ulm@gentoo.org>
Cc: 63733@debbugs.gnu.org
Subject: bug#63733: 28.3; error ("Unknown option ‘--batch’")
Date: Fri, 26 May 2023 13:33:00 +0300	[thread overview]
Message-ID: <835y8fl6w3.fsf@gnu.org> (raw)
In-Reply-To: <usfbj4etu@gentoo.org> (message from Ulrich Mueller on Fri, 26 May 2023 11:33:33 +0200)

> From: Ulrich Mueller <ulm@gentoo.org>
> Cc: 63733@debbugs.gnu.org
> Date: Fri, 26 May 2023 11:33:33 +0200
> 
> >>>>> On Fri, 26 May 2023, Eli Zaretskii wrote:
> 
> > What happens here is that, when you use identical "-batch" or
> > "--batch" options several times, the code in sort_args removes the
> > identical copies, and we are left with a single option to process.
> > But if you use both "-batch" and "--batch", the extra option is not
> > removed, and they both appear in the sorted argv[].  Then one of them
> > is processed by 'main', the other is left for command-line-1, which
> > doesn't know what to do with it.
> 
> "emacs -quick --quick" or even "emacs -Q -quick --quick" works as
> expected, though.

Because startup.el knows about it.





      reply	other threads:[~2023-05-26 10:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-26  7:43 bug#63733: 28.3; error ("Unknown option ‘--batch’") Ulrich Müller
2023-05-26  9:10 ` Eli Zaretskii
2023-05-26  9:33   ` Ulrich Mueller
2023-05-26 10:33     ` Eli Zaretskii [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=835y8fl6w3.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=63733@debbugs.gnu.org \
    --cc=ulm@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).