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.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 9100 invoked from network); 9 Jun 2021 23:32:14 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 9 Jun 2021 23:32:14 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1623281534; b=AIriNARwZz9Y/t5ErWjfTgVP71aKqgI4JTX6s9JVDQDwlQ3yY/fifdvJPMLaMb5VRuQNigItZy /t7305C4Us2tITbaxCu/v5P1ovcm80aEp7fM7NN6SxH/mfsdJbmscAoI17wfvG3SddQrbTu2Hm X1WsUmG14im39UxmzlEUG+Eq7a780Vc0k1a6kvJRDl12A7oMlyTf+xaMvfF5gSIUjkeiGXclv1 nfUJLMYCAw34Rfguf4zNyyXCSPHfbjlgZ5NJFBw/+licXCseacnPdFFGMI4SlVPwbqQYttOikn MGSa1cBFunUAdSGoLXPNRnPO3Qf5UU02p7fKSHC2pKjERQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-oi1-f179.google.com) smtp.remote-ip=209.85.167.179; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1623281534; bh=WEJE1RXfwL3O0LDswC5ndBIHPzgOic8ZXxRrTNPSc0Y=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=tZSWVRyGmw8dbaVJ0d4zoeiMWKuC/vuYwJM4w0oZID/jqIg+yGBfTu5DtdB74HoM7dK3zinczO cpDXE8O5yAeY//9bRtLYBt3SiK1NGWcEGdLx9+rO0bgVjorY+GTbY5jz5HjqKr4ODCv7Bs1Hfv SuRK/LgilHkbcF0T4kUtL+L+vIYD0HpbhYFqkovVzPi/SCOy8NWrwv1Rzc1bZ+mF82HzGChdgf 7qqh52+f5YxhCuPTQMg64V+uHWsvguR1t1dO5UAaA2/RFN43WKzeesu4ZRQauajdXSf3e6nj2S Dejz+3+44BsYnGW/AAnjM2GRXUrWOuw5G+pH5oU942vnzw==; 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-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References: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=tNRk4N6T5wsz+8t28fzp8dOOk1npAqvm0OsG7nbltS0=; b=Ysw60vew2Fl/9AGVbQgU3+IvuM 85eR50KZfldtmh9WjNsZ1GWh32wyU5ricpMQe3+XNWyri+hsFKZ26EJGNH1lv0FZQr433TyIv4hmD T+YtCCxJWJ91o6qovW1VzHBgyWBbi10GTx384U97LNivXJPYSyLUWmXMIQfBLAMHcDRAzXJ2jzTIu VwNa3fZcJNdVt6d+Wg2IGHFGCoLUvi8Cfgmav4Vx6/9mCgL5l66Fl0AW5ZS6qo2a7tD4sl04Yjgd1 8fadQmRiqetCWj57nEPWiD8TJ0AgZJmsjPtHMpgbVpskNRFLG5dAAyvSmwl47mLrwail3QkHvn5Xw eNluYAGQ==; Received: from authenticated user by zero.zsh.org with local id 1lr7gC-000NcB-2h; Wed, 09 Jun 2021 23:32:12 +0000 Authentication-Results: zsh.org; iprev=pass (mail-oi1-f179.google.com) smtp.remote-ip=209.85.167.179; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-oi1-f179.google.com ([209.85.167.179]:42640) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1lr7fb-000NJO-Cv; Wed, 09 Jun 2021 23:31:37 +0000 Received: by mail-oi1-f179.google.com with SMTP id s23so52750oiw.9 for ; Wed, 09 Jun 2021 16:31:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tNRk4N6T5wsz+8t28fzp8dOOk1npAqvm0OsG7nbltS0=; b=EA6zbw9B+fi+jOpqN9hCX40nknZCwoGlsiW9cZPqzPIisiUb/h5p/ZAFBf54m3Zfxr rNXs2dPR1+r479LUQZ9bzClBZ0gtGJddpA+Z2vFGPPgOp8vsRAo5goDDOy0q25cTN4fL 5iVhExflMMkUIAEZK97VcaKMmEPpMqxBMgdf4iD8kXvfLCGcdeZ8+Q8ZGOyXIGKbH6MS CAZQojRLTLIf3Ije1tM8mbjwQc8kkhRTRWQS6IB5rpkJ9qUJ79mJ7c6phKy64B0DJSQ3 7ORlF86h0eEkPHWayn/g+p6kCp7ebpQXohIEA+nNkyMedZOt1FL6DOOqIzgswzAVW6qY iT4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tNRk4N6T5wsz+8t28fzp8dOOk1npAqvm0OsG7nbltS0=; b=oXDt5URbpuIrDCubPTu4p5V+hFo6GrllDmO5DEouD59ZRiw9HSuL9JfAFTIqkW8a7V lfLwh5NKc0c+uiKvXHZBmc2BE1EbFcwXOEN09YlJVYl1IfRhF8Fn3qhJ9XQS65ioYiLF UDhoA/PbopHKGnPPtLg/S1Aw8YVIx+1FQSMrRSwjuKi9w5HRRXxMPkTLY+MB1+Hv1GB/ k4BbxtUdSDcoPh6w8f8pjtJowVM2QV4zfE3wBRLL1UzMzmvsGzBF2KRJdfm4SR67mfwb xiAoyiFJDQZjFWSr1BKv9+5DGoCHEeeevSOMTXoljD/++YSWxEB9t3SYWKWCvCd9jG/b OdAA== X-Gm-Message-State: AOAM531ro96WOxeVjEfkpFlNtpfTH7nfTWnlJlOdzdE1W34NrGwAEN+g ETnPkQzZvHh25htTUXEFTuEUyh0+d5KK4NL+7pedjOmipCM= X-Google-Smtp-Source: ABdhPJwiw368dlR5cO1gmOoR4yuKbMnfK+5n924AOxb7qnNE5Boo0twuhv2xWHgi/eD3BsWjUUiKHOySVo2OPKGASrY= X-Received: by 2002:aca:f452:: with SMTP id s79mr1401696oih.84.1623281493879; Wed, 09 Jun 2021 16:31:33 -0700 (PDT) MIME-Version: 1.0 References: <20210601053235.b4junj6muuwegl7b@chazelas.org> <20210602091145.xvyymjxdors6kqya@chazelas.org> <20210602142005.b5tw2hj2c6q3psqv@chazelas.org> <1629605749.599911.1622710481163@mail2.virginmedia.com> <20210603131347.i7bv7ao7j3hk3a2e@chazelas.org> <1005646394.611235.1622731315969@mail2.virginmedia.com> <6329352197c60d24bd605f329f8e613af63f76df.camel@ntlworld.com> In-Reply-To: <6329352197c60d24bd605f329f8e613af63f76df.camel@ntlworld.com> From: Bart Schaefer Date: Wed, 9 Jun 2021 16:31:22 -0700 Message-ID: Subject: Re: [PATCH (not final)] (take three?) unset "array[$anything]" To: Peter Stephenson Cc: Zsh hackers list Content-Type: text/plain; charset="UTF-8" X-Seq: 49047 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 Sat, Jun 5, 2021 at 11:18 AM Peter Stephenson wrote: > > On Fri, 2021-06-04 at 12:25 -0700, Bart Schaefer wrote: > > On Thu, Jun 3, 2021 at 7:42 AM Peter Stephenson > > wrote: > > > > > > assemble a table of how they're handled now and with the > > > two most promising proposed fixes. > > > > Are the samples I posted in workers/49005 adequate? > > Looks very much like what's needed. Thanks. How do we make the call on what to do, then? There are a total of 29 test cases where at least one combination (bare current shell, current shell with Stephane's workaround, and stripquote or literal with the workaround) fails on the test key. (31 appear in 49005 but two of the test cases are redundant, which I hadn't noticed before.) Considering only the 3 variants with the workaround, literal misses 5 of the same cases as the current shell, but 9 additional cases. Stripquote misses only one of the same cases as the current shell but also only 5 additional cases. The current shell (w/workaround) misses 4 cases that neither of the other two miss. The cases literal fails on are, as might be expected, those in which the workaround adds extra backslashes. Stripquote works for most of those because it peels the extra backslash off again ... but that's exactly the behavior which Stephane points out "otherwise serves no purpose". I still feel literal is the best option despite potentially breaking more workarounds, because it means the workarounds can just be removed rather than modified.