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 31670 invoked from network); 24 Dec 2020 19:06:33 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 24 Dec 2020 19:06:33 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1608836793; b=HCsbM9HChqyR+7Yeemz74BRyVYDxuRXFRr95ie6NZNaf7sHtq7LyT02GjKFHfDSa7AyBDOrxjY uDyoLoMajjgYTbWuNnN+vhae/JVUY6k8RmYE8dxGDELGxk86DaLsJGr9oW7gE5EomNfeCajwaY 14lorq6joCNePC7/vsl0V5DGtGRENHxAp7MF2L1VatLJQFJ6LMEBPjgkUYYGzW218vkSz4f83Q R/fBZw+gcJvjt1vRFYuWVVy9D+t8gllJOKCAb/X8Jld6hdlHIKOfGat0KrVcjgoSKndm954bpA Q3jOsUXPWdQpHzPOYQXhXMLY256PCRHjqr9pKJXLMnG6WQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mx.spodhuis.org) smtp.remote-ip=94.142.241.89; dkim=pass header.d=spodhuis.org header.s=d202011e2 header.a=ed25519-sha256; dkim=pass header.d=spodhuis.org header.s=d202011 header.a=rsa-sha256; dmarc=pass header.from=spodhuis.org; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1608836793; bh=0sWatFUQTUEUlHnreSHAnVEKhwL2PaExdKER2+7JNec=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:DKIM-Signature:DKIM-Signature:DKIM-Signature; b=xEIIEhfqUZR2If4WTErZKTOBmC0Xwm4/5MOijYwqhWgxT8s91gxTBTaEgCuh+5Rn9t9bjbGx8U ctzwvMwudvvOKnajL0N/y8bNTiSC3fR3L9g4myzMxALpHDJT8QUOU52g2KxxcqXXP5/1P5dY8H cLURuPYyxFFP2GN9kmQoo+48dXKBoPMZ4EFrA8vyGRzIGzv15gORQsgmH2XtCjN8Ul1xR6ue69 9AQ2nK7spJnd2F/nGDbJZT6PXcSroMJj3MidmN7iU1yIKCAqP0v0ggyOPfW3H35is8x8u0hfMJ enUZ5idJw/U2PJjUnuNGrrpt7NBa5LDOGUO4/5Q5Q0cQJQ==; 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-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=0sWatFUQTUEUlHnreSHAnVEKhwL2PaExdKER2+7JNec=; b=BsMsNdPbwXKw3hExvqhTCpJZYv BmrAeWhK6nHmE2K0xHW1L1GvbG+6PdV5CCTh8Kfu8YLKqLlosxt8GZF+V550up9CzRYgUSWBHmzEJ 4xn/2aig+V0jIyjWfDu0fsm16Zlz6/mjbyycUqHRM/Ct4P8u/JasE/6Fz2zzL1CvVi+ggDUkYfCOj hUGr55tAOYgw+Jo6DN4hkW+DzM/HKE4GVfDfGB3N5S8/UqkoVBD3qXAWn5EQ6Xsc9ZrmhElrHxJmY TVM8w8kVmUy8o0Api5E5ApNi4CadVmMsJKKVjH+QR2ts0VJQSsN8JEvwfCST4vhdRDP9axbS/nCdL Qk3Dpg5A==; Received: from authenticated user by zero.zsh.org with local id 1ksVwV-0006ZQ-Kk; Thu, 24 Dec 2020 19:06:31 +0000 Authentication-Results: zsh.org; iprev=pass (mx.spodhuis.org) smtp.remote-ip=94.142.241.89; dkim=pass header.d=spodhuis.org header.s=d202011e2 header.a=ed25519-sha256; dkim=pass header.d=spodhuis.org header.s=d202011 header.a=rsa-sha256; dmarc=pass header.from=spodhuis.org; arc=none Received: from mx.spodhuis.org ([94.142.241.89]:13422) (DNSSEC AD) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1ksVwD-0006Ps-KJ; Thu, 24 Dec 2020 19:06:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=spodhuis.org; s=d202011; h=OpenPGP:In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Reply-To:Subject:Date:To: Cc:Content-Transfer-Encoding:Content-ID:Content-Description:OpenPGP: Organization; bh=0sWatFUQTUEUlHnreSHAnVEKhwL2PaExdKER2+7JNec=; t=1608836773; x=1610046373; b=mwK/2zx5kJeMJk3Gh9x3xe3MOHyvfg4P7Q9VTRF0pszHN6afaDZlAFPYNk/t RMbyTioNb5C2boUpZNe5A96vbuGDJuX7qXmbaGBFPxWNql/VShiZVdIBJvlRY9lDbnHemrscoK8A3 GDriWQ3D4DplIs4iK8LJgBUNd6aXryn0iQE93H1UktxKd0hMZKEOj8HfEDxEhIJRft7/FVWBr8IoV 9HH2CkhdxD78YXwkBHVwVKA2vuFnSm0X14R5cUCoey3LduL9GnWTZknc0X+o9TB7yDEKCnCj0fKHu 9su0Yc5BCItTH5Boj5E8cbscoZ8xQdioWU2oL8Rtmq2+zNZIlFQ==; DKIM-Signature: v=1; a=ed25519-sha256; q=dns/txt; c=relaxed/relaxed; d=spodhuis.org; s=d202011e2; h=OpenPGP:In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Reply-To:Subject:Date:To: Cc:Content-Transfer-Encoding:Content-ID:Content-Description:OpenPGP: Organization; bh=0sWatFUQTUEUlHnreSHAnVEKhwL2PaExdKER2+7JNec=; t=1608836773; x=1610046373; b=2QoWHAC17ESB/DwPNl6nwqR2jYthLLRdxy9+hgK/mVo2LKsPfkiE6OAmTm4c LZUDyHMRdySTHTWPSop9L36UDg==; Received: from authenticated user by smtp.spodhuis.org with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) id 1ksVwC-0006Pf-TD; Thu, 24 Dec 2020 19:06:13 +0000 Date: Thu, 24 Dec 2020 14:06:07 -0500 From: Phil Pennock To: Felipe Contreras Cc: Zsh hackers list Subject: Re: Unset and $empty[(i)] and $empty[(I)] -- worth the effort? Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: OpenPGP: url=https://www.security.spodhuis.org/PGP/keys/keys-2013rsa-2020cv25519.asc X-Seq: 47758 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: On 2020-12-23 at 17:04 -0600, Felipe Contreras wrote: > True. I misunderstood what $arr[(i|I)] did, and I can't find any > documentation about them. zshparam(1), "Subscript Flags". It's sometimes a little confusing that most of the expansion flags are in zshexpn(1), except these. -Phil