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 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 24972 invoked from network); 21 Jan 2023 17:16:26 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 21 Jan 2023 17:16:26 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1674321386; b=ruLXKuNVqh307FQ2Lme2S3M3l5MtJViqZobYQULxoKxXKuEMDFOCx+CuRxxVOSQ/WbShp3fPzH 7ynrgZvyG1t7kQzieaqyooP6c9XJ4aygWEmc3MMhvd916MifiM116CK4V9Ftadm5340KM0vSIy 9kqmC9+KDC13jsXEWz37I70NZ34iNNcUP24yzLkHPSqqmMgI0Y0n2JSuzCwZPC9vHmwyA5kJdW vRkl1kJVpWb84/sgZclf+FjCTO3Y8KVFTCODYeFCV38D34klvpkQZ0UgNKEhp1ouWmxKwf8GwJ jBGJECj6eJ/dlDS1aD+CAsmgmOl43Y0JVbjIqVNcaWvE+w==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-yw1-f179.google.com) smtp.remote-ip=209.85.128.179; dkim=pass header.d=gmail.com header.s=20210112 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-20210803; t=1674321386; bh=flsZghkpperJAk3sBp0wyEiLiGPj1z92je7B+sdNJhQ=; 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=fKFzCPwce/yAZ1D4bBJL+dtHmK6bZdV/mv/E8itEPRVBGs49qAxAtcFffljqd8baonhOGSVgGi yLgB6bXMqoIOMxcNL4Gb/uNsGQcyTNRpGx4fPLRUiDhENhiyBHPYISfG8MmgUSoWJe+rzKcTrB 19u3BIPmqS2VZ6hI55sjGFGhPQS5dNrvJb26s85uOp5Tk7zaBpMhDG26eFahKgcVr7AlvYjFCR eO8MLLb52bNDY19d1G2ThIjh5hBxnU7cNfj+MMB311jPs2C3YQeon67FalY41CXrWnhyoQNfEr 8FuvYpS/J8u6A601IPts/ujyndWqkVyPQxFjvBaDDIgmsQ==; 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: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=alRioWrxfsjikhg3xRhzcCmfF25xELTTNk7HkXYRepI=; b=Lliz1wawxa63nAisxYG9r5WrXM vHYAosWCD1F2jX+7egSMpCcG30Ja3ilHBfy377GTws1WguQbHzodtXsciNszD4ht+E0pt7Esk23Os 0JPjNU7NN/GBKTyplG/rlOMyXaQLMVPz1qos1fTTzKIL/w9+nstzbxcok0f/cilvzMwXQb4AsEkc1 Lf7olvzCEbtIV+xeExYXGA0ZuUgez0j3rX/MyjOROOfKX7kGc2QNu3Vr8PCn5lEVy+2f/VDJNYOP2 XZ5Hh7dSs8Akk/tugohWh3Kln1jjBgxOn8Y03OrxaqjQTVLzUqGLt476VhCQDu8nvucHTEGwlBq1q HutNbLNg==; Received: by zero.zsh.org with local id 1pJHTd-0001Gd-SA; Sat, 21 Jan 2023 17:16:25 +0000 Authentication-Results: zsh.org; iprev=pass (mail-yw1-f179.google.com) smtp.remote-ip=209.85.128.179; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-yw1-f179.google.com ([209.85.128.179]:41498) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1pJHT6-0000YC-4F; Sat, 21 Jan 2023 17:15:52 +0000 Received: by mail-yw1-f179.google.com with SMTP id 00721157ae682-4a2f8ad29d5so115674627b3.8 for ; Sat, 21 Jan 2023 09:15:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=alRioWrxfsjikhg3xRhzcCmfF25xELTTNk7HkXYRepI=; b=J1Hv29FQvszxssOLU3kl3oWSwjyAxncvrwzQhpr9xuYx1NgsgrhjcqwggIwa71X7am +iGDN9Nqg0635yvIvwE/2u6/INcpRRgZpXHSlEqykdAnvHcsNGwg5L3lfdYGz2ut9Fg+ Zosqm1ISQ1Vd3UBYY2o+/eFx9IhSsqg7M36ocNBwvhkGCH6peUFW+JdVZXBq5QrzyVT7 bpG/dNgSdbokDPPvbL+Licn9RIPpBlPZv2w9evnoqFvb04NFblQ7eIOHo/1l8DxxzLJM WSM8BtWWgiCLrxsFQKNSavHqOJDGuoSNvy7eQkOEH56sn0YLvxSYtjCKLxMcoht08Pus 45SQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=alRioWrxfsjikhg3xRhzcCmfF25xELTTNk7HkXYRepI=; b=ld/80yQ9gPiPB/l4Ftk/Lr56nso0gg0811yytzaFrxf0gyy5+JrUBuRrx+O916Bzuc 8wovl0cEN+kRjBpjuxxXBEEkzYJd8S1MsSUOoy8tZMYpF9I0VyBgKxsRCAen9e02Udas P6Xi3dVrJ6IVUvZhAXRqw0gqu7JCNf36iCCCTh7CAIRdLr1toYiU7WizFPAkrc5E0xv3 WMv4qQ3/01oz7I46Sjon3sXY3bOisQkaTQjgh9BgaG8bvo64dWOJEAHbNp8ASrzkUvB9 Ku+qbxzCJCucBmFzOeW3jwifHar90SHELWGZxmpFIjnZn5W0NCTkVuvzX/xr8hvpAnG9 YBwg== X-Gm-Message-State: AFqh2kq6bxTB1eXYdR91S9mKfo6olVaDjibgWGkoKVeY/KzGhvdQCVy8 DgMjYwyilPAW70+/VjzlCVpRuN/DJ116cNJaeNc= X-Google-Smtp-Source: AMrXdXvU4Py9xdVqHzt/UF2MBduUubagGezijVvneLmMJ9efjyIIqXw7SunV4V+zcofmrghaKvf6g2JK8OBwTy3Tt1g= X-Received: by 2002:a81:4ed1:0:b0:4fd:56f3:fdad with SMTP id c200-20020a814ed1000000b004fd56f3fdadmr900852ywb.57.1674321351007; Sat, 21 Jan 2023 09:15:51 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Roman Perepelitsa Date: Sat, 21 Jan 2023 18:15:39 +0100 Message-ID: Subject: Re: A way to untie -T vars? To: Bart Schaefer Cc: Sebastian Gniazdowski , Zsh Users Content-Type: text/plain; charset="UTF-8" X-Seq: 28692 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: On Sat, Jan 21, 2023 at 5:56 PM Bart Schaefer wrote: > > On Sat, Jan 21, 2023 at 8:38 AM Sebastian Gniazdowski > wrote: > > > > 'm using -U flag to quickly uniquify the scalar, however this method is problematic as the array vars are left over. > > I don't follow what this is intended to accomplish? While trying to understand what Sebastian meant I've accidentally discovered an unorthodox way to unset a parameter. unset2() { local _"$1" typeset -gT _"$1" "$1" } Test: % foo=hello % unset2 foo % typeset -p foo typeset: no such variable: foo I sort of understand why that happens but it doesn't look intended. Roman.