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,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 21948 invoked from network); 1 Apr 2021 22:34:38 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 1 Apr 2021 22:34:38 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1617316478; b=DvaGHgs1EuqilJQ7PXZOJCVydz1hPIt/j8tR+6eZkpPW7XBXyJFJ6+wzaO6FEXoMX2FP/zYO4T yqWPbne7KtNlZEKWHouiY/hbB/QCPnA1jRUInkv5wfsHS3X/iS+qlWrsBuziGvKnNdMmYhO8h2 MIHtqJ50uftBS5scyJ/mTkEXdSDZNH2IZ7vPpwIO8tZReSKHQA7c2ONRqCo9VVuslWRj9zjk5p 5LSaCLMJk3ARUXvU+dDxjXrYrc7SQMykvNhSu5xsj9cYZs+sdd/LIEvzkAInHn06ID2rfxlhJq QCEtONUVnmdBuB0kmBeNT/VLfXzsYtP4CvZB8/jckoVqaw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (out2-smtp.messagingengine.com) smtp.remote-ip=66.111.4.26; dkim=pass header.d=daniel.shahaf.name header.s=fm3 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm2 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1617316478; bh=oOrOBtUnD0927R9cCU5NYFG4NLbfwxsM+N5v2xBbx+c=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Transfer-Encoding:Content-Type: MIME-Version:References:Message-ID:Subject:To:From:Date:DKIM-Signature: DKIM-Signature:DKIM-Signature; b=yQ0vVTLZp3Jdreemu+umU6TJBr3IOOw1AilsqxQYlu7Dc+ZFHUO003dBvTyXWbxjRDcOIkL5Gs uFbvoj0KqnTrcw1ANW0Kzj6pokeq57KztW2KUmGIVJWr3h6/2DUI6B4qiB0QGgkJyCtp3McwOF fW3HjJv/fLMHQqtBgXoqGLsd3upRw98VxuJX9UEHGLX53liDePot5exyXpYjiCheknyEAZ6CTA 2fDIyBFRT2J0zNvuRs80FMiDz4VTPChDEeGh2VoTuA1LeCrYipOZCwuVASOwUW94yB/SUzsiiO c6CBpSVu2jnSXVxxmFIRr0fJXyiooXtaiVHapONZuM7WRA==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:In-Reply-To:Content-Transfer-Encoding :Content-Type:MIME-Version:References:Message-ID:Subject:To:From:Date: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=Mbkx7R16sGZ7gOSs0jQ6z4oNpinCPBp35q/ZlyIBntI=; b=EL8eomw4fvEC36l6KElZcvMhhc p6/DqAZ+QTxOeXhNuDI6tFAs+wqMBV87T/KLRgbeaGT8I+J64URnpALQrHqwto2R6zmTyUWarrtt7 qL5DAjB+LjySivwCIlIR+juvBNhX81kbNkdL2+LnaBH/4VqJa+Sn61+xcvCKXZqmh+WEn9d/Qf3WN Z2+pdaBn7Y7cs415ZQEqH2/eENXZD6t2ywm7wRMT/q4hivo5BHcK583Mx62TiDp7B4uVa///nhnN3 c1YSJBddq4f7yt8FpTXQzi7OKFfl8yBqZMyY+tNYKgWLLl1F4KR8yrhuJPMR8/GF6VDz8ij2wXzaT RrKa85dg==; Received: from authenticated user by zero.zsh.org with local id 1lS5tY-0004I0-10; Thu, 01 Apr 2021 22:34:32 +0000 Authentication-Results: zsh.org; iprev=pass (out2-smtp.messagingengine.com) smtp.remote-ip=66.111.4.26; dkim=pass header.d=daniel.shahaf.name header.s=fm3 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm2 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none Received: from out2-smtp.messagingengine.com ([66.111.4.26]:57845) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1lS5tD-00048H-Ne; Thu, 01 Apr 2021 22:34:12 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id D22C05C00C4; Thu, 1 Apr 2021 18:34:10 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Thu, 01 Apr 2021 18:34:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=date:from:to:subject:message-id:references :mime-version:content-type:content-transfer-encoding :in-reply-to; s=fm3; bh=Mbkx7R16sGZ7gOSs0jQ6z4oNpinCPBp35q/ZlyIB ntI=; b=sFwRE5CzubMRoGpd6cw/jF/y/Du1zqmzWreiK5iZoXucNjtRIH9kVDAp RLrT6bjzKqDO7kL5nvjSJy0VsGaGg267QKWwNag1oa4nt+9h8cNecaITO2p/DCmR eKGTT79ojK/UEGYzmSBKYg1YFXQQ0lug+pWs1iofjXIXwVFvnab3KgYIy2CuYAZ6 sQr7pzHtf1BhFuIcTtTGwqVOyZIjVVeDNA2n2ykmzU67akCjeZvDhC6EiU2nlZEr IO52Fwt+G3CjZta5O/QphJySEap3dft1I+C9ELHIG9/dQyP8SqzpU0bze76Qi7lV CMVADRXTlKI+Y3veSfJimu2sL73nKQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=Mbkx7R16sGZ7gOSs0jQ6z4oNpinCPBp35q/ZlyIBn tI=; b=wN2QBvYTuct+sWuOmEW4UHvis7IVDFW4gSZFNhdeo+yK2CwV5MTA9d0Bu FkThRL1vcQpCNLHXQLlegTiKW4PxZIq6b6n92/KzieloDe2MButG7Bf6802aL1U7 tr58fY+d+yfxttf333hfhkBq+rJkI6cDnt//QtVlDwfYRD17E/tru1BoQ55/ab+R GdUyTHxNwRmvG8qx58B5mvlhAr0ZTbxJtEUnLUsL048VpcuzOlCFZ0pOTc69bPXD qVTcaukp6WBmXRXcA97+vg37AxloxGodoIwVXLX60PJG7mEQszbwU+tw2yiOeCqc T07xfrzHEbdPvR5qZtf/1v2wTYs1w== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudeihedguddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtugfgjggfsehtkedttddtredunecuhfhrohhmpeffrghn ihgvlhcuufhhrghhrghfuceougdrshesuggrnhhivghlrdhshhgrhhgrfhdrnhgrmhgvqe enucggtffrrghtthgvrhhnpefgleehtdffuefhgeeuleefffejgedttdelhedvvdeuiefh vefgvdfghfevvdekteenucfkphepjeelrddukedvrdefiedrudekudenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegurdhssegurghnihgvlhdr shhhrghhrghfrdhnrghmvg X-ME-Proxy: Received: from tarpaulin.shahaf.local2 (bzq-79-182-36-181.red.bezeqint.net [79.182.36.181]) by mail.messagingengine.com (Postfix) with ESMTPA id 159E21080054 for ; Thu, 1 Apr 2021 18:34:10 -0400 (EDT) Received: by tarpaulin.shahaf.local2 (Postfix, from userid 1005) id 4FBHzM5lWhz2Ss; Thu, 1 Apr 2021 22:34:07 +0000 (UTC) Date: Thu, 1 Apr 2021 22:34:07 +0000 From: Daniel Shahaf To: Zsh workers Subject: _arguments -n / $NORMARG (was: Re: [PATCH 1/2] __arguments: New completion function for _arguments.) Message-ID: <20210401223407.GG11180@tarpaulin.shahaf.local2> References: <20210401000026.23570-1-danielsh@tarpaulin.shahaf.local2> <96182-1617281582.024669@4LIl.h-KW.lXZv> <20210401173305.GB11180@tarpaulin.shahaf.local2> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210401173305.GB11180@tarpaulin.shahaf.local2> User-Agent: Mutt/1.10.1 (2018-07-13) X-Seq: 48372 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: Archived-At: Daniel Shahaf wrote on Thu, Apr 01, 2021 at 17:33:05 +0000: > Oliver Kiddle wrote on Thu, Apr 01, 2021 at 14:53:02 +0200: > > You wrote: > > > + '-n[set $NORMARG]' \ > > > > -n should not be used, it is fundamentally broken and will never be > > fixed because the right answer to $NORMARG as it is defined can be a > > list of possibilities. It grabs an internal variable from the first > > element of a linked-list and dumps it out. The problem it was added to > > solve would have had better solutions. > > > > Could hide it with ! or add a comment. > > > > I'll add !, and we should document that in the manual too if it isn't > already. The manual doesn't already include such a warning, but I don't understand how exactly $NORMARG is broken, so I can't document that. Could you elaborate on what cases «_arguments -n», as implemented, would cause breakage in? The comment above the definition of the linked list's type (struct castate) says the list comprises one node per set. Does that refer to _arguments option sets? If so, perhaps -n is fine to use so long as option sets aren't also used? Cheers, Daniel