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,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 22153 invoked from network); 14 Jun 2021 09:04:42 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 14 Jun 2021 09:04:42 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1623661482; b=z6ijcpucYod5OELTwF+FC5FMZY87reIzZS2tZrJPYSAlAqVbcV9dko1z1+kQKL10oAujDIhctY HpF19k3WToHI1BCCUcV+zEtT+rQUw7pAJG+OY9vMMko71Xuzf77nmuo3mretDIiI0xPh7Utltb F0bt9jqr8aEati8hgxyixGCGwUa88s6rH4lYuqdmJ4RX4ZzpTSPBPDpEBA/8YjtVWZT76rsKAx qO7FtKgjP2WkFI4UhKh2l1w2Fhx5L+j3rpC/94ocZg8kilIkAN4mlxJS9oyayPzi2enwlpLp0R cNFa15cdayInN6yTpXQKR2D6FPHbfr3rHnZni/SipzjtsA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-il1-f180.google.com) smtp.remote-ip=209.85.166.180; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1623661482; bh=zlCfG7pqIQLwfb5EoOFHS8YjZyfzyV5ql7EJKMi7WiI=; 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:References: In-Reply-To:MIME-Version:DKIM-Signature:DKIM-Signature; b=eDsM//tLpJUHixRB14N8BqeoB8aresZjd1RNg1yxuZDCYpAaD0y0ticu25ARq9nFhhFP9HJcu6 CiM2tkZCylFwK+4iqzRjZGeAJpzqNRNji5PAkB2fDZhD7hHH2RFQLNlK32IUYWx1nNeds9OtV1 zrhfuGgMQ6QabrXAYbA9KhM0+JRsslkN4jzRBTwN1lcrMdmJrP+A1En6Q3aQdF4otcGxKHnCCt SndALF/FJufeavTspgsz0ipN2b8WoHvVeKcgdYIsrjrqskrO6r367fscAIUxPmVmHkOj+/Thzs iUWjsNlfoPyCkAa9ZSMVq81exWDmHi4n3gLSsVwNBf5LXA==; 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:References:In-Reply-To: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=Qlyd7VhB7LvGIuXmAtxMcxr9/gDcp+AIF9PaGN68v0Q=; b=fVaYBBvatBmhIMz8XW3bt8P5tL QTNg27/4J7sX7otJ/7aWJHtz4TY4mM9QZ2OUjt5pZSkGV39ug42kFNTq5CY48RqiSs9doMnHLerw3 M6E5NFNFz3kn8wihNi9Hwy1MN7sQKTW6xQw6KtDoI2o+jm/ikJPRAh59a8aaj6pnN/Y83UUawzUgJ B3hU+RB1rFSdOVo8QTDV08D7p4t4yvKHB0qGKHy2ID+rNn30F1k1xxztnI925RseyAm+kV5apcFgR xGplkPkjdZDWfWVgpZybA6gkXNF7Iy4Wru6tK+surUHLllULII8s/5lgfZaNIy/aa75mLn7A8f7rp wFTVmftw==; Received: from authenticated user by zero.zsh.org with local id 1lsiWQ-000EXn-4L; Mon, 14 Jun 2021 09:04:42 +0000 Authentication-Results: zsh.org; iprev=pass (mail-il1-f180.google.com) smtp.remote-ip=209.85.166.180; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-il1-f180.google.com ([209.85.166.180]:35399) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1lsiW9-000EGY-Pd; Mon, 14 Jun 2021 09:04:26 +0000 Received: by mail-il1-f180.google.com with SMTP id b9so11615089ilr.2 for ; Mon, 14 Jun 2021 02:04:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Qlyd7VhB7LvGIuXmAtxMcxr9/gDcp+AIF9PaGN68v0Q=; b=Nsagrd1oS3lcs13cAjCfPoky/83q7pxM/dLG40M2Ze29Hh1n/fAoIN92P6UGYjiVWU 4+UmX6LIuAtAZahhYlMDtby5bOIgTMvr4bLdONrNj8451aU+XITxY00rCmYLK/gRdZMI RTxH9gXVjpRWQBu31WWwrsoGETDjueON1vD+0ptNhOpJ/C6bzStdaD1i/hHWS/dMVDom GBKGLpuG+KIFLM2O5riAqo8/eXFzD3B8W8V37lI3e2r32XnHQiRxgYd+7ZOOeyxUbvmm pCoVkmcsiC+jZokRyUWe6a3tY3vdcQwmkh/ij/7pA1eH1VliGSy5bmrSdHYSXWbqUmqj FHCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Qlyd7VhB7LvGIuXmAtxMcxr9/gDcp+AIF9PaGN68v0Q=; b=ZEkQvdXG6Pc/5E9g6IqMQ9un7lmyPkT8V3MMvhPkz1vJlgAUNBh5piML13hO4h+RLP zgZXZBFhe/42YY9UYmC8GhZ32i9APvO6OzkK9ynWH/4kbU70St8IND12XT2NEFpbltDa HX77p+JzzwUZyDJ+CmsSIC7W0gCHra83ua3c3n5vkTssfTglRU5fK3crcpupXHIYuf+N OJibsgGBBbC5dH83KIXluhtkG0GtDz5PLZDKpNcmdchEJq+KKl2i+vhc/t89DjylJWEK I9gv1nHFrCF7ORx++Ach1CT7wUx8SSdR1SEeoyJC0sv+xFzJPUM3epmh8vgZta8DP7Tx So0Q== X-Gm-Message-State: AOAM530VgyoFUZO9KguOgWWeAFoirH6Ml7RHwnU7E2VwiEkAugq9YPOD 3hLcu9135i5o4OvTgdy0wVeURRpZIfNuZF25kQzoxjgU X-Google-Smtp-Source: ABdhPJzP2Mu0cz4yXIfNyjKwQyfcU518FyYj70UVCDUCAg9O54NyWY9/kD9qB31cjKW/LHuZaCyY6edfB+nkYUErQJo= X-Received: by 2002:a92:2c0a:: with SMTP id t10mr13727043ile.25.1623661464509; Mon, 14 Jun 2021 02:04:24 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a05:6622:2186:0:0:0:0 with HTTP; Mon, 14 Jun 2021 02:04:23 -0700 (PDT) In-Reply-To: References: From: Mikael Magnusson Date: Mon, 14 Jun 2021 11:04:23 +0200 Message-ID: Subject: Re: [PATCH] (final) unset "array[$anything]" To: Bart Schaefer Cc: Zsh hackers list Content-Type: text/plain; charset="UTF-8" X-Seq: 49072 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 6/14/21, Bart Schaefer wrote: > Here's the diff just for "literal" unset, omitting all the > alternatives and omitting the problematic hunk that modified getasg(). > > I've included a NEWS entry, but have not yet attempted to create an > incompatibilities section for README since it's not clear what the > next zsh version number will be. +that result as the exact hash element to unset. This differs from previous +versions of the shell, which would also remove a leading backslash for an +unusual subset of characters in the expansion of $key. Note this also +means, for example, that + unset 'hash[ab]cd]' +unsets the element with key "ab]cd" rather than silently doing nothing. It is somewhat unclear (without using my contextual knowledge) if the "Note this" applies to the old or the new behavior. Perhaps "Note this" can be replaced explicitly with "Note that the new behaviour" or so. (or "unsets" on the last line could become "now unsets".) -- Mikael Magnusson