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 28885 invoked from network); 25 Oct 2021 19:46:08 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 25 Oct 2021 19:46:08 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1635191168; b=r1OEXH4TS4sWkUYJNqxMmGrepBhmGr+5E4flVDVOYmDyXLjHtLJaH8h0eGrR728V1tJ2MqpNpN nxAlEQ85Olg4F72F/uIWk7T/bZO2i/wkbSm5XSY2NFr2O05hjMbnsnDAuIa43PGoShLCXBxNhR 4TFfKwqW7LcdrOPaEqJfBFA4iofGyZZyvU7hxcOfhRDSY1yYf04PGvePKwN1tFU0zi4UncZ55M QSixnJpBWzlZISi4VdV55cSpYgHo3+bygInzkghr/7smEZMmdo0lBaHzD5y3zg3ZyoXszxjDVz tioUsqRKTadn5EcR72wHaZo/LW0hmWTI9EsyUC8UDO1/ig==; 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=fm1 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm1 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-20210803; t=1635191168; bh=+IjErkO0nAKiFF2FNN6g2aIM4+2MowJW8QQPu1xvB0c=; 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:Cc:To:From:Date:DKIM-Signature: DKIM-Signature:DKIM-Signature; b=nzz/EcooVnpVh+5YpxHvIhPnqQ/e3d2xo7t7HkmMVmaty46Fn6F/vHLFlEifxacQpYwuYshNf5 N3awvgn5B6dC74iCffWjMJAmCy7lNil0xVtpcTglszJPNd9vsUl3uRD4y0oVPGNABeYTya3bCP LzoSV3LxjxSt343U7bVcgsZdyYXbQdcOFv/Yi17Wb4b/3cgzwnDHKRNLrTRaVBxKYuo9291UyY MB0rL3EN/QKaEsr3eynNIBxOxEyWaHWAedr2cwFml0BGzarC7n6CcMkieqjrYKnSp8/ekOvQ8+ zj96vZikv1s+ii2swiAiWbxlpYBRooSi0zmtImJnr+Vwrg==; 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:In-Reply-To:Content-Transfer-Encoding :Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID; bh=+IjErkO0nAKiFF2FNN6g2aIM4+2MowJW8QQPu1xvB0c=; b=beqtukuVJYNI/+Gh/3w13vYpzf GanDRzqEL5ySRMm5zSM56CXNuO2fECgBbSVZGSf7FdJMNFgkYGKC5tqo2dzH1wbwynsYEELxqY3D2 nViVTx8k5h3Ayg6oeG5n8ihBfF/atZTJYRaQ2ljWieoilSu7Ok3SdYomPWcSA0X6cDpAglg06pVEX FzPOFq+FOUW6XnHOMysQfEBb0ICoYLu+mMhH+SR6tdsXlgupz+Uolj7I6N51nH/PZp9alyaAJIJbI rCA5k190fKn9FvLHWXhEH8NHbQ3EaaXvWgy0WbpRVAjy3RI3rH51MmakxJPBAWDJ4fg+8yVSoG4JX JilWYORg==; Received: from authenticated user by zero.zsh.org with local id 1mf5v6-000GT4-0a; Mon, 25 Oct 2021 19:46:08 +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=fm1 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm1 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none Received: from out2-smtp.messagingengine.com ([66.111.4.26]:41559) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1mf5uB-000Fko-Rk; Mon, 25 Oct 2021 19:45:12 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 274B45C02C1; Mon, 25 Oct 2021 15:45:11 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Mon, 25 Oct 2021 15:45:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=date:from:to:cc:subject:message-id :references:mime-version:content-type:content-transfer-encoding :in-reply-to; s=fm1; bh=+IjErkO0nAKiFF2FNN6g2aIM4+2MowJW8QQPu1xv B0c=; b=fd8pW7usPnASUMGLX3n+EQYKl10pHbtL0A0yJ1+ORHCiti4O/4h6Z5Le EsPvcD9F+Lukoupm2w5wkSxal2rn4Vaot6FJJMeSWvs5v72wOQLfjGUNrYztPdEJ U3PsQB6z6CbDLx2Uh7/UYnudUekrqCEgXDV+1IktnTSGScWAXJcwbRu+cbU4r+La K31Olhr0kMTkO2bLEG1htYGhjBqR8OUbqMn+nBbE/oHMr6PuZx7jXKr451AgKjH/ 2uDb+xD2xWg8hhtdjbnxJKBJmY95aUMw5NVk9Ad3UDwjJ0oQc9h7+PogdX/6YhAv XYD6mdr01vz9Kdj6mNLIPO6yAVBVYQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=fm1; bh=+IjErkO0nAKiFF2FNN6g2aIM4+2MowJW8QQPu1xvB 0c=; b=j0YmZC/lAoTP0bv+VUF9hW6RK1lBKiVnnrQbkO7HjqNhUj+k4dupKzPj1 NM0YVqm1p3OL/uz+y0mltpEbT5W8RNt0ZQYH+pUnCxyivw74daO/PM3uxRPrhfGO xv5jINeEhDPf6qyc4sqOcBTj4qVdbtNzj0G+RGhDVqi1buYp3ytfyPXR/g90oY6l RvFa/6ZIY96Fqy6cVAJVgw0bbFrxhDit7N3Wg4tAUwvIoj+RZx28wmC0ob2OcULT uK3sEvZTmel1UMGCfDC3ywYIvl8xhYh6N6+8ilnnBseWtC5v+YMdG6+vAiex2KOC pMsoIUhvb42jZqQO1zfNFe8ATwFwA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvdefhedgudduhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvuffkfhggtggugfgjfgesthektddttderjeenucfhrhhomhepffgr nhhivghlucfuhhgrhhgrfhcuoegurdhssegurghnihgvlhdrshhhrghhrghfrdhnrghmvg eqnecuggftrfgrthhtvghrnhepgfekgfefjefgvddvgfdutdelleekvdefteeitdduhfev veevudfhvdevfeefvdeunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomhepugdrshesuggrnhhivghlrdhshhgrhhgrfhdrnhgrmhgv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 25 Oct 2021 15:45:10 -0400 (EDT) Received: by tarpaulin.shahaf.local2 (Postfix, from userid 1005) id 4HdQQr3tCWz52D; Mon, 25 Oct 2021 19:45:08 +0000 (UTC) Date: Mon, 25 Oct 2021 19:45:08 +0000 From: Daniel Shahaf To: Zsh Users Cc: Roman Perepelitsa Subject: Disabling null elision (was: Re: Most Recent File) Message-ID: <20211025194508.GB8612@tarpaulin.shahaf.local2> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Seq: 27288 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Roman Perepelitsa wrote on Sun, Oct 24, 2021 at 09:22:46 +0200: > > It's one of the nice things about zsh that you can use the shorter > $foo and $#foo instead of "${foo[@]}" and ${#foo[@]}. I wish there was > an option to disable null elision with a corresponding expansion flag > to turn it on similar to no_sh_word_split and ${(=)name} I'm in two minds about this. On the one hand, null elision breaks the principle of least surprise — both in reference to other programming languages, and in reference to SH_WORD_SPLIT's default behaviour being the unlike-Bourne-shell behaviour. On the other hand, making it on by default would be backwards incompatible, and making it off by default would mean there's yet another syntax-changing option for everyone to keep in mind when they review random autoloaded functions' code. All in all, perhaps this is a change to keep in mind for 6.0 (deferring it to a major version due to the incompatibility). Thoughts? Cheers, Daniel