From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 29646 invoked from network); 5 Sep 2022 21:23:33 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 5 Sep 2022 21:23:33 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:Subject:Cc:To:From:Date: References:In-Reply-To:Message-Id:Mime-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=Z0t/tMZ99N0XoSbb+EEuw58iuMBRu6vFqf1wO+6ta1k=; b=rtL0hjz83/K3Vnl++DGFHa317a QtaP9XygT+CCb7Y5ctM0gUjDXf+4cwuYZ5BY341Gk5AG9TE3wGr7XIAzJc5z92PSFdImzffgNf8V1 uleKhW0r9YBXY3KM5VS2Kez+NMujQwj2pvNLK8RbYiOcOymt7t7j9K+diTbDbChs0hkhcse6/P+zL 5yUveCgBUzrXsmzorfiBg2bLMbxDCJ9S+heSU9qkjN9DOs/iq6LrCgPjcqN+AsuWigrMAlJXQ9OTz qLQjYIc5/JneAo2+VloO9G4XziYMC/+2ClCcdUwvPHk3JNeQeKoDKvA3aZPDVI4GypnyY82vKYsQ7 MI5PkokA==; Received: from authenticated user by zero.zsh.org with local id 1oVJZ5-0004xd-Lo; Mon, 05 Sep 2022 21:23:31 +0000 Received: from authenticated user by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1oVJTx-0004Wp-1m; Mon, 05 Sep 2022 21:18:13 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailauth.nyi.internal (Postfix) with ESMTP id C3C7927C0054; Mon, 5 Sep 2022 17:18:08 -0400 (EDT) Received: from imap48 ([10.202.2.98]) by compute2.internal (MEProxy); Mon, 05 Sep 2022 17:18:08 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdeliedgudeigecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvvefutgesthdtredtreerjeenucfhrhhomhepnfgr fihrvghntggvpgggvghljoiiqhhuvgiiuceolhgrrhhrhihvseiishhhrdhorhhgqeenuc ggtffrrghtthgvrhhnpeeghfeltdeutdelieekleelgeeugeeliedtjedvfeevgedvfefg ueefgffhhedutdenucffohhmrghinhepghhithdqshgtmhdrtghomhenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlrghrrhihvhdomhgvshhm thhprghuthhhphgvrhhsohhnrghlihhthidqudduhedukeejjedtgedqudduledvjeefke ehqdhlrghrrhihvheppeiishhhrdhorhhgsehfrghsthhmrghilhdrtghomh X-ME-Proxy: Feedback-ID: iaa214773:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 8585D31A0062; Mon, 5 Sep 2022 17:18:08 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-927-gf4c98c8499-fm-20220826.002-gf4c98c84 Mime-Version: 1.0 Message-Id: <5c1f9a83-8fe9-4532-a09d-425609b6ad2e@www.fastmail.com> In-Reply-To: <20220905091532.GB255763@zira.vinc17.org> References: <20220901002300.GD992100@zira.vinc17.org> <20220901012122.GA1046913@zira.vinc17.org> <20220902000406.GB1046913@zira.vinc17.org> <20220902131533.GC255755@cventin.lip.ens-lyon.fr> <20220904094216.GV5920@tarpaulin.shahaf.local2> <20220905091532.GB255763@zira.vinc17.org> Date: Mon, 05 Sep 2022 17:17:48 -0400 From: =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= To: "Vincent Lefevre" Cc: zsh-workers@zsh.org Subject: Re: ${EDITOR} with spaces (was: Re: [PATCH] initialization of main keymap) Content-Type: text/plain X-Seq: 50606 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: On Mon, Sep 5, 2022, at 5:15 AM, Vincent Lefevre wrote: > Indeed, for EDITOR, under "mailx", POSIX says "name of a utility" > and not "command". This is a bit unclear about the possibility of > full pathnames, but under "more", POSIX says "If the last pathname > component in EDITOR is either vi or ex, [...]" so it is now clear > that EDITOR may contain a full pathname (there wasn't any practical > reason for a restriction). > > For VISUAL, POSIX says "pathname of a utility". > > So, in both cases, options should not be accepted, i.e. spaces > should be regarded as part of the name (though I wonder whether > this is portable in practice). It isn't. As far as I'm aware, POSIX only addresses EDITOR and VISUAL as used by a handful of specific utilities (mailx, more, and so on). Even you assume that these discrete descriptions imply a global specification, nonstandardized tools can do whatever they please. For instance, Git shell-evaluates the contents of EDITOR and VISUAL. https://git-scm.com/docs/git-var#Documentation/git-var.txt-GITEDITOR -- vq