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 26493 invoked from network); 3 Jun 2021 14:42:29 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 3 Jun 2021 14:42:29 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1622731349; b=Mlar3BARGLrmgnmKaHYRudpDXFGBvBSqnqHqV33GtM6U1Zz9aRByAeVoWMbT80uKXlpXIEdRC9 lULpMpE07V//GVW2vK3fj/WefSeuTc82AdAn/P8HqmFI+xoZPuBUnfDhdnC1J1FLk4xyxnAALF kwXKlMD0Kd/lyPE6kzMvIctPXZTONZ7vJuIUOey4UdcemCO/nvdyqtrZ/UeXmVHklHP+q2w/j4 JTPHxnj+Z27LFRWzBfeD0gFAm1Xab21lRxXvcz5Cfj/ecQYFQEPEi2kFsSV7wSW+JrAnTwIeOI 74EItGPq0CpnJPcgszzJIrmJcT8hxdWbJMxS98MivdkJdg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (smtpq1.tb.ukmail.iss.as9143.net) smtp.remote-ip=212.54.57.96; dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256; dmarc=pass header.from=ntlworld.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1622731349; bh=JyihBTjICO1bGpXXFbYPLljBmg1RISHFCzORO0MZOEA=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject: References:In-Reply-To:Message-ID:To:From:Date:DKIM-Signature: DKIM-Signature; b=qfk+OPhajD2rQIrDvSCrWdZah2VwlNC+fErqGTl1lTsivfRsHKlT8oyB32/iVlz5A27nqLGd5g 7pZ4ScG0PLrtJoeDlp7yq/tzQ8mWxHn7wRvxHDJNtN5ZSBtwsQNuwg4YIu6f9l8lZ0BU1OitgY Ye3WntVz+sN9X+UlizGVfUk7TUjIMwooBCIepr2cfTu/T34GNa+SCs6BN9SX8rI46ovgI+UoJu FhTbQmYRfnTN+GSx2nQynKs0iqK5Y/qmaSuxYmflN8KSZKATtg4oyRgN4PWqi55Os5l9dBjER3 +lNe/iXyHMbzP+v3jZ0fTEYHRYimBnkTNU9VADKk5XqKOg==; 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:Content-Transfer-Encoding: Content-Type:MIME-Version:Subject:References:In-Reply-To:Message-ID:To:From: Date:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=pnRbmbxpGY5wDiqsWWl9/92hQR/AOVD6HSk/Zm6rXs4=; b=KAi2/+Shg/gmnuNM+sAUlO/fbY 1OYmoCaz5esI4bREDW5UZSI3CYaWKd46m9zeTdhmEda5p+4/neInXMfrYmcf0FJXB3yvea1VF2dkJ fd5fm965hw7pEXAW1F6uwQMdjYauj4iR1tcvigy39E3KzvDgmw6AdgKL1BvZaDwJuNlUwti+/CpSn sTzIlsELDjrZYgLpks6W834Q+fNY6nKhYJdjImuWqa/yIeSxVjtDXHYUABN954BccmvpEzJ7E5XzQ G6Lwmsxf7O+B55qyy+hSWjzieDpue+XZxnhfVBxsyVDQBxXqMISQhd+aG1evAqXvzgKx+hhBjy9tx EIV7cKvQ==; Received: from authenticated user by zero.zsh.org with local id 1looYG-000DbZ-Iq; Thu, 03 Jun 2021 14:42:28 +0000 Authentication-Results: zsh.org; iprev=pass (smtpq1.tb.ukmail.iss.as9143.net) smtp.remote-ip=212.54.57.96; dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256; dmarc=pass header.from=ntlworld.com; arc=none Received: from smtpq1.tb.ukmail.iss.as9143.net ([212.54.57.96]:58730) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1looXk-000DJO-Im; Thu, 03 Jun 2021 14:41:58 +0000 Received: from [212.54.57.82] (helo=smtp3.tb.ukmail.iss.as9143.net) by smtpq1.tb.ukmail.iss.as9143.net with esmtp (Exim 4.86_2) (envelope-from ) id 1looXk-0006Mm-7u for zsh-workers@zsh.org; Thu, 03 Jun 2021 16:41:56 +0200 Received: from oxbe8.tb.ukmail.iss.as9143.net ([172.25.160.139]) by smtp3.tb.ukmail.iss.as9143.net with ESMTP id ooXjlPUNlgNmmooXkl6u6i; Thu, 03 Jun 2021 16:41:56 +0200 X-Env-Mailfrom: p.w.stephenson@ntlworld.com X-Env-Rcptto: zsh-workers@zsh.org X-SourceIP: 172.25.160.139 X-CNFS-Analysis: v=2.4 cv=aYcCITkt c=1 sm=1 tr=0 ts=60b8ea34 cx=a_exe a=pgSR3NrKiwmx/6vnWRL19w==:117 a=GsQ2xLT5vIoA:10 a=IkcTkHD0fZMA:10 a=mij--kw9vLIA:10 a=N898d1J4AAAA:8 a=UWWPpa2xNh9_RbPZD8IA:9 a=QEXdDO2ut3YA:10 a=4OhKILdWXy8MGewZJRtY:22 X-Authenticated-Sender: p.w.stephenson@ntlworld.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntlworld.com; s=meg.feb2017; t=1622731316; bh=JyihBTjICO1bGpXXFbYPLljBmg1RISHFCzORO0MZOEA=; h=Date:From:To:In-Reply-To:References:Subject; b=jdvVzihLGnNBRY3f2r4yNz/nJBPdtyJUPj9G5wyhSWyQ//vJa/Hb616SabmDXPvib fTCZVt9UZgr9dVJ5K8WClEYh2nm33T0aZxHXsTfZfUbxq9R0AndFsQqx1ty5Gzm3iE lIYtmzAp9nNlc2UupMp7ZUYFn+IvcRACxohTJOS4cy8x+PwnRrtGCqUkwx/g6oIe66 YFM9cLAIwHzjcMTsN9HODuLHpHuE2PdVVfMOJCmH5bvl4vBYix2lUSKMpVeI3VGkPa I01oYd+SVNuDnk5aEKEE2luJrg0L6FG0pFlxyUhwgVEs7K4TOjq9fHhAx6txO2iuGn a3cKm99X4X0Bg== Date: Thu, 3 Jun 2021 15:41:55 +0100 (BST) From: Peter Stephenson To: Zsh hackers list Message-ID: <1005646394.611235.1622731315969@mail2.virginmedia.com> In-Reply-To: <20210603131347.i7bv7ao7j3hk3a2e@chazelas.org> References: <20210601053235.b4junj6muuwegl7b@chazelas.org> <20210602091145.xvyymjxdors6kqya@chazelas.org> <20210602142005.b5tw2hj2c6q3psqv@chazelas.org> <1629605749.599911.1622710481163@mail2.virginmedia.com> <20210603131347.i7bv7ao7j3hk3a2e@chazelas.org> Subject: Re: [PATCH (not final)] (take three?) unset "array[$anything]" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v7.8.4-Rev72 X-Originating-IP: 172.25.161.4 X-Originating-Client: open-xchange-appsuite X-CMAE-Envelope: MS4xfHo9XWlRxw6Z6jU8PPi/MeY7FZkdznvp4+M5spYNPN5VG4w4UOBz38zfF5fw6yE6J3QWLZ8QjIIpAz00R6OGfwAxzAZkAhTb/mEoiRiILoOuiPBieeoq sKI3JnAzt7rxrW6QPgpbv8CIv7nAM1UZhhjnxkqzOGhbmSFVoo9TQo4kb46KFkY5/EunqnFHE2JDjMvlZ6oikGujBJZObj/gPK1cUh7zHdNHcNn8g2Usa9uN X-Seq: 49004 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 03 June 2021 at 14:13 Stephane Chazelas wrote: > If I understand correctly, the "stripquote" variant is the one > where the user can do: > > unset 'hash["foo"]' > > unset "hash['']" > > unset "hash[${(qq)key}]" > > That is where quotes are parsed and removed but otherwise > serve no purpose. > > IMO, that just confuses things even more. It would probably be useful to make a list of difficult cases --- both how the original is handled and how anything that looks like a likely workaround is treated --- and then assemble a table of how they're handled now and with the two most promising proposed fixes. pws