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 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 3349 invoked from network); 1 Nov 2022 05:01:45 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 1 Nov 2022 05:01:45 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1667278905; b=HgsS5KZ12LuvilGfRjM6WVi9xZIfhD39Ct35eEqtPJzPnk0/3ZkWWPTna3kbrXR8aAvImTG7rK gSaT/ze6KwMW5JUgI+C3gF/6sV282SYp6mAq1wX+3C1AgHYYI64vp9UjsabrguiLOEz1MmVAjY EqGcK0dBeSuu92az8VhxcaaoKbTzZNWnjEZ1mghV4F4NR3iPUVM+Yf8I/0ruxRDRbDnv0I+lyH lha4a0ZQUgFs9C1Reevw4tpgOIWg8yKE4K4FS9EmZTIaBXPyAWDy0Z69C+5+BHQ3cnW006UWHV VyyU0MP+yKPRSfS5lwM6Q3cZJsYPK8In00bq0TsjPlFGzA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ej1-f49.google.com) smtp.remote-ip=209.85.218.49; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 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-20210803; t=1667278905; bh=GOjWXYUYgYGJkH+gwSNrLFQX4e6bOJVaF4Hf50Jhq9I=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=eXwq7UtUSp4JIIMTiIO3IjAN1D3/3gGJZJfEXrWTc/4FTQ6OijjNU5CuhFo+0AIjfQmpyyUOaB Zjj+GBBNFwVECaxy/l1XAP8cgdvvDvt2mc9gR8Y5WBKlxueen1uBNT8CnyWF2tNYrTDM7AD/ze nZHyBAYBuW+GrPA5sbIi8+cW86XR5s+KJMfeKagYDFeiAUc/0z8djUUDgbx7ykaGnDl9fGbYkT eDYHkSg1wLCf2LiN/jpRygOV21hSO4OqKWByDJqjiUf0I4rPj3jUNTXQNu5iPCQGAWQwLTek/g AdDIBQQjaNLlqWfFH/SLO5fTFbizsCqWIQse8w+dD+KS4g==; 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:To:Subject:Message-ID: Date:From:In-Reply-To:References:MIME-Version:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=Ma/hWPF4i7AkwT+aglffgkG8bSsWvzcpuR9qd3g28sw=; b=jzQ2fHBx7kLusg2l4eYnaCr7qT O/8NjTvV1MlOFGkMB1VVYdA8ZJbMNpUIhwhxwZFtx0aJ0dNGTt84r7wkxySzBh6gafVoBFRs9XQ7X wMcJrYT5H11mnLL54CZ6twphowCdZdxiP2ApXS9PQi4D8rx5Ws0zcZ+CJlGa/ZbbS4INGPhSRbOtA W685Z7EbwQwJVZQpSvH8C+pxuW5DJaEDCSs8wv5Rbi/JRwReUVVicrOJijWK/h/Bu7A6dfYi86zqX JVWdXrXTN7+LlsEx+qRsRaxkKINJUY2zs5XVKfjHtRbnOFb4L4Z4V7s+dLh9/lkfTKrZS4wmHjnVW /82f3Npg==; Received: by zero.zsh.org with local id 1opjPD-000EQJ-KT; Tue, 01 Nov 2022 05:01:43 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ej1-f49.google.com) smtp.remote-ip=209.85.218.49; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ej1-f49.google.com ([209.85.218.49]:40764) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1opjO2-000DjE-A0; Tue, 01 Nov 2022 05:00:31 +0000 Received: by mail-ej1-f49.google.com with SMTP id kt23so34398541ejc.7 for ; Mon, 31 Oct 2022 22:00:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20210112.gappssmtp.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=Ma/hWPF4i7AkwT+aglffgkG8bSsWvzcpuR9qd3g28sw=; b=6jQ9XzlX98zbepBdW4Ho27Afs+8pd6kSL41+3l3zONET23+XWZ4kQlISJzOkl87Mnn 8oafyxpkAq/LBHukaKqG/ZV4+/8CLEDxaVWg8W61g9rInzf3gm18uReo8bS9SW0dR+cn QQCiMinkLTS9nOzl59lu09HTaY+wkIEEwUiiI5mPUs2pGPKtftdzvkX6LlRDhvL63/VE +N+cSCod4oLWH3ecqHBrjyvghR6DJDuIED9PesbXTRSTb8i5ZbNXKdQV4ct7G2C0HDmN nNV5GrlWJL7VyURKCnklILdYoGyxI7U4D3Ebs35H+V3mdG8yzrIlgH1xSb5WUUcSt72D y2xA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=Ma/hWPF4i7AkwT+aglffgkG8bSsWvzcpuR9qd3g28sw=; b=V5PoVjxCWs8Tz2mSamca5GJp87+8/Cls2Fr1AmKZGFn5Fv+bWPOuU/u6g7PvYwlHdC +BDf7RFb+1NWlazSFqqexTVS6KFGyt60fUlJtqWB3B34BJYyY6OpbPZBc9HckBGK4YWw n25gMI/msJuYcfW8NDUCEpC5GU5wGD4dk+505XrcPpc1VuitAxJW61O7x278ijcNxVa8 wyIklvi4TZYtDVAmOuv5uTQE8mjmoWKtBx5l83Lzm6iLbp/FB6wv9Zpsfg2QNEH1kXw5 nTjD+F9CcZyNszabID9536yKXKEBX6tPaFS1ckXwVTRmvJO503r5ZcXXUGtbZySztuyX szPg== X-Gm-Message-State: ACrzQf34UTTT63gT9OADDppHrpWLvrS9MVnetkb0DcH/PfaUoidBqn+r HeGV9HwdstPYw4B8sBMODGijW27EqwmPFq/xNI3Oo4fCHFg= X-Google-Smtp-Source: AMsMyM5nYLLiQLE6RpvrH1RLHDA6FUQOXHBZuCuEbC4X0JOLR8BEUz87h3qJ7el5Orq5tgHFjwDgO+wZWcu/S0OI+as= X-Received: by 2002:a17:907:8d07:b0:7ad:cdf2:7b66 with SMTP id tc7-20020a1709078d0700b007adcdf27b66mr9072526ejc.699.1667278829537; Mon, 31 Oct 2022 22:00:29 -0700 (PDT) MIME-Version: 1.0 References: <5f18c162-e111-21ba-3ebe-ece09a477ecd@eastlink.ca> <552657de-31ce-255a-bc8d-7c9cd4b8eabd@eastlink.ca> <530b18d0-5e72-6afd-7448-cdff9c119bda@eastlink.ca> In-Reply-To: From: Bart Schaefer Date: Mon, 31 Oct 2022 22:00:18 -0700 Message-ID: Subject: "typeset -p" inconsistency To: Zsh Users Content-Type: text/plain; charset="UTF-8" X-Seq: 28308 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 Thu, Oct 20, 2022 at 7:25 PM, I wrote: > > > typeset -T CDPATH cdpath=( ) > > typeset -aT CDPATH cdpath=( ) > > The first one is the (incorrect) assignment for $CDPATH. Nobody called me out on that ... the first assignment is actually just fine. I'm not sure how I ended up thinking that didn't work. There is, however, a related buglet: % setopt extendedglob % typeset -U CDPATH % typeset -mp '(#i)cdpath' typeset -aT CDPATH cdpath=( ) typeset -UT CDPATH cdpath=( ) Note the -U attribute is only retained when printing the assignment for the scalar ... which is literally correct, since it was only asserted for the scalar, but lossy, whereas the array-ness is preserved in both cases (as long as typeset remains a reserved word).