From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.bugs Subject: bug#24949: Command-line argument parsing: named daemons Date: Wed, 06 Sep 2017 17:33:33 +0000 Message-ID: References: <05vavopehh.fsf@fencepost.gnu.org> <8337isgkkh.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a113ad0a2dd2896055888beb8" X-Trace: blaine.gmane.org 1504719255 23504 195.159.176.226 (6 Sep 2017 17:34:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 6 Sep 2017 17:34:15 +0000 (UTC) Cc: 24949@debbugs.gnu.org To: Eli Zaretskii , Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 06 19:34:08 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dpeDH-0005lL-Rt for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Sep 2017 19:34:08 +0200 Original-Received: from localhost ([::1]:37280 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dpeDP-000395-2J for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Sep 2017 13:34:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38125) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dpeDG-00038C-Dl for bug-gnu-emacs@gnu.org; Wed, 06 Sep 2017 13:34:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dpeDC-00069E-FQ for bug-gnu-emacs@gnu.org; Wed, 06 Sep 2017 13:34:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44618) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dpeDC-000695-By for bug-gnu-emacs@gnu.org; Wed, 06 Sep 2017 13:34:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dpeDC-0007Th-5U for bug-gnu-emacs@gnu.org; Wed, 06 Sep 2017 13:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Philipp Stephani Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Sep 2017 17:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24949 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24949-submit@debbugs.gnu.org id=B24949.150471923328728 (code B ref 24949); Wed, 06 Sep 2017 17:34:02 +0000 Original-Received: (at 24949) by debbugs.gnu.org; 6 Sep 2017 17:33:53 +0000 Original-Received: from localhost ([127.0.0.1]:53299 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dpeD2-0007TI-NF for submit@debbugs.gnu.org; Wed, 06 Sep 2017 13:33:52 -0400 Original-Received: from mail-oi0-f47.google.com ([209.85.218.47]:34903) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dpeD0-0007T4-Ey for 24949@debbugs.gnu.org; Wed, 06 Sep 2017 13:33:50 -0400 Original-Received: by mail-oi0-f47.google.com with SMTP id n18so45564259oig.2 for <24949@debbugs.gnu.org>; Wed, 06 Sep 2017 10:33:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Mhi66u5/CAwigBAVLDbmmlxbFigmfCiTj9urgvt4TrE=; b=UD0nTTDArua53NLUOyZUDPIqobKCXDhOYIL0WG2tIREIyxdcIz6miofvi6mQ8THDx4 ZdpibPUkgqjtuCB21oyP0AYubWVbb83TUS+RCjH1JRdSSNh8BFchxJpmIB7Oc/PWlDSL AUKco+/KZY4YUR4Dgx0FRcUrxGnTrRsGHrwazA7IVNu9A3NKjOT7PmTLVz6e2r3HIuRz 31gsMwNhrTT4/x/04o7vOzukwMGEzfjolCCr8TyWjLwcP6WVbv9KJdJE9bE6+WlAx2DP qGREjB0zUlooyDPrIAXTAJhw0kq98AnrWTMkVbA0Uz6j97Ml53elSRRf61AXZOZ4dwgO pYsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Mhi66u5/CAwigBAVLDbmmlxbFigmfCiTj9urgvt4TrE=; b=YOpQ/Q+7H6YC3O0u0tHlEf50dfvYwbxrRFNjiDN2sNj4ufgwD/B0iSmHXOn0lkALVg Vq7MRdVWraYOCHTMUPjrmcqQnbK274UpccPWrFCf6AHrRDJxOZhtx3Q/KvLfCSd925e+ r8a5Lo4QrEfepa/fbSXaX2/Wq7KOwu5vZOAMvODV8RLNu/QfB4QNVzZZYSIFmC59EtTj 227HZr7+w2wtGA6a2b7wAty2Q74YcQBxqFqQAftKCgJOyEEPRq8Kaqg6pGDEYtGhYgME XVxl+LpYgBnXZqziNpSUSUGUHdsbfwx0WNdVGABU++VrHQN2+NVUVx4oHH3lOjhxWYFp Clvg== X-Gm-Message-State: AHPjjUhMXqStcmWwAjI6NN6OADITD6UKVgGW8bxbdp1VOYRmqH4Shi6G mEJLXPikwj+eKeLEU3FVaaghGwAEmx0k X-Google-Smtp-Source: ADKCNb7r/3CUZ8qiCtlT0P58af94087XWAPwNkvcCEit3H224bESd2WhG4g52EXjItokPM4SKXlqHJozg1IzEjPQA38= X-Received: by 10.202.87.213 with SMTP id l204mr1049114oib.52.1504719224513; Wed, 06 Sep 2017 10:33:44 -0700 (PDT) In-Reply-To: <8337isgkkh.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:136642 Archived-At: --001a113ad0a2dd2896055888beb8 Content-Type: text/plain; charset="UTF-8" Eli Zaretskii schrieb am Mi., 16. Nov. 2016 um 04:40 Uhr: > > > This starts a daemon with a server named "FOO": > > emacs -Q --daemon=FOO > > > > (This usage is documented in the "Initial Options" appendix of the > > manual, but not mentioned in --help, or the man page.) > > > > > > But this very similar form does not work (it starts an un-named daemon > and > > visits file "FOO"): > > emacs -Q --daemon FOO > > > > Compare with something like "--chdir /tmp", where both forms (with and > > without "=") work. > > I wouldn't expect it to work, since long options are documented to > need the equals sign. > This is incredibly surprising and also inconsistent with the man page, which doesn't have equals signs for most options. Let's just document what everybody expects, i.e. that all options work with and without equals sign, and with one or two dashes. --001a113ad0a2dd2896055888beb8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


Eli Za= retskii <eliz@gnu.org> schrieb am= Mi., 16. Nov. 2016 um 04:40=C2=A0Uhr:

> This starts a daemon with a server named "FOO":
>=C2=A0 =C2=A0 emacs -Q --daemon=3DFOO
>
> (This usage is documented in the "Initial Options" appendix = of the
> manual, but not mentioned in --help, or the man page.)
>
>
> But this very similar form does not work (it starts an un-named daemon= and
> visits file "FOO"):
>=C2=A0 =C2=A0 emacs -Q --daemon FOO
>
> Compare with something like "--chdir /tmp", where both forms= (with and
> without "=3D") work.

I wouldn't expect it to work, since long options are documented to
need the equals sign.

This is incredibly surprising and also inc= onsistent with the man page, which doesn't have equals signs for most o= ptions. Let's just document what everybody expects, i.e. that all optio= ns work with and without equals sign, and with one or two dashes.=C2=A0
--001a113ad0a2dd2896055888beb8--