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,NICE_REPLY_A,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 14239 invoked from network); 2 Nov 2022 17:20:02 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 2 Nov 2022 17:20:02 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1667409602; b=BlWcOUue+mQUJ20zrMmU+F4JwI/c1p6dMboNBSILGQsVfFeCxPKp6n75FrKcEX2xuHqV4c//Ga o56Wjzt7A2h7r5TiAUGfJxpr5vKpjMx0UrOja/J+M7GEDGUPC6bvEL8aNC+BhDqr0iHEZMWxqg Qa65hfIHY7ZW08sIZK8oeb9UJfRwE1HKKNjQ1CSVpVssgVZHxCCvql516kaRuwOntxn+NIBHfa Cbv3fheQKpLFPkKiXFm46uJsOyL9nRvtAvK042jdnffz7usXO/jnvmIvRck+Ihudn8oQ1Ussyk AVSbh1XA+yba/gvfvWGEOUIU9hMIEr/Yel4+WsDHXaWTAw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mta04.eastlink.ca) smtp.remote-ip=24.224.136.10; dmarc=none header.from=eastlink.ca; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1667409602; bh=vfV9lJ61iq9r/VB4k+h37MWTf/4tm6xFvOKc4nT7JLY=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:To:Subject:MIME-Version:Date:Message-ID:DKIM-Signature; b=JwxxXkE8b9sZrAS/+HA5lhsmI5mI3Zj4oJa24xaHAOqh+kvH21a14b49B9xPZdsqGbPj2sBCjs 1tseE9V6eg5BmarE8bY10b5CP4rLF1Rzy65FpjJPf9/0QD7UuEAiEsIvIB1G2EJno7AbKG2tTW 9CrUD/juh1/XUx4s+OujjR+YHXCj1B35QU6M+ZnbEfmKtRqzBrhx/a74CDbJj/2j+UTSvQIPgX 3UeXiRiZrzI795Ci1Cf4W5h+wtxOp3TiBC19/pda3C+EjasKbIvGkFUGsOMZ5pAQqHeut7iMdA awADpkJaEIEd/jWjsegD/weOq63AAYbNlQisqVl4EDCK3Q==; 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-transfer-encoding: Content-type:In-reply-to:From:References:To:Subject:MIME-version:Date: Message-id:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From :Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=hG9q2J3RJeA3iRt5qqeuwhvURb8gRcx4/d7cpZcvDe0=; b=dsjQT43yY+BRy/n1iAmIbR973V j6ewvKiCmwy13gEbh1vfhPob0EId6ANc4amDVLY5LSOSbgFJD7qjftAUWA/VVpaxC/RlrUBOyICIT jZWwc5sUT1KJuvXnHcEmfy3towqUHfWk4OQdsRLvf+Yd6TUGUq9EHRsOHIiVz4Q8v1A4VJuviV0je DN6EVDFFDUeC9nwHDJEg9ZLQmGAT5Sqk9nEzXH8emZcQoWyjLLVP6XSUPqek9kOYmAI8JGK44vcnZ 03+1A/M5twI39K+Savc25SV6J4ZhKDCOP6SRQLvtpJQ//bq/upf0kiuu8sQJklJDHSAn9ijEIGk5V iJSOTltg==; Received: by zero.zsh.org with local id 1oqHPF-0004xG-WE; Wed, 02 Nov 2022 17:20:02 +0000 Authentication-Results: zsh.org; iprev=pass (mta04.eastlink.ca) smtp.remote-ip=24.224.136.10; dmarc=none header.from=eastlink.ca; arc=none Received: from mta04.eastlink.ca ([24.224.136.10]:42422) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1oqHOM-0004C9-7e; Wed, 02 Nov 2022 17:19:06 +0000 Received: from csp02.eastlink.ca ([71.7.199.167]) by mta04.eastlink.ca (Oracle Communications Messaging Server 8.0.2.2.20180531 64bit (built May 31 2018)) with ESMTPS id <0RKQ000GX7T5ZS50@mta04.eastlink.ca> for zsh-users@zsh.org; Wed, 02 Nov 2022 14:19:05 -0300 (ADT) Received: from [192.168.0.2] ([24.207.18.108]) by Eastlink with ESMTPSA id qHOKoPeBnC2xnqHOKoYI0P; Wed, 02 Nov 2022 14:19:05 -0300 X-Authority-Analysis: v=2.4 cv=UMYbXgTy c=1 sm=1 tr=0 ts=6362a689 a=xN66ZtSbq5jdJYpBp7G/jQ==:117 a=xN66ZtSbq5jdJYpBp7G/jQ==:17 a=IkcTkHD0fZMA:10 a=ry-Rb1kA5CBU24hlZ18A:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrudejgdelkecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfgtefuvffnkffpmfdpqfgfvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpeftrgihucetnhgurhgvfihsuceorhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrqeenucggtffrrghtthgvrhhnpeeitdejffevgfdtheeggfetkeeugeegieetuddtvddvudetteffvdevlefgueekudenucfkphepvdegrddvtdejrddukedruddtkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvgedrvddtjedrudekrddutdekpdhhvghloheplgduledvrdduieekrddtrddvngdpmhgrihhlfhhrohhmpehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgdpnhgspghrtghpthhtohepvddprhgtphhtthhopeerredprhgtphhtthhopeiishhhqdhushgvrhhsseiishhhrdhorhhgpdhgvghtqdgkihhprfgrshhsfigupehtrhhuvg X-Vade-Score: 0 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Message-id: <10c0411d-60a3-2dcc-0664-18eb9d40b23f@eastlink.ca> Date: Wed, 2 Nov 2022 10:19:04 -0700 MIME-version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.0 Subject: Re: "typeset -p" inconsistency Content-language: en-US To: zsh-users@zsh.org References: <552657de-31ce-255a-bc8d-7c9cd4b8eabd@eastlink.ca> <530b18d0-5e72-6afd-7448-cdff9c119bda@eastlink.ca> <9712ca3f-76f8-3aed-0a40-c6269afb73ad@eastlink.ca> <69b46d22-4430-ddba-4b21-a220b4816438@eastlink.ca> <4f5942d7-c5e2-45fd-8da0-1de3dd8b2cf9@app.fastmail.com> <4ba3d422-cfe3-69c7-29fe-4b7afb73c9e7@eastlink.ca> <7e4f0447-694a-4971-9b23-77b323574f11@app.fastmail.com> <446c90ae-6aea-8a7e-ea3a-a0a47f79a846@eastlink.ca> From: Ray Andrews In-reply-to: Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 8bit X-Seq: 28322 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 2022-11-02 10:04, Bart Schaefer wrote: > > Of course it does. > > % set | grep -wi path > PATH=/opt/local/bin:/opt/local/sbin:/Users/schaefer/bin:/usr/local/bin:/usr/bin:/bin:/sbin:/usr/sbin:/usr/X11/bin:/Library/PostgreSQL/8.3/bin:/Developer/usr/bin > path=( /opt/local/bin /opt/local/sbin /Users/schaefer/bin > /usr/local/bin /usr/bin /bin /sbin /usr/sbin /usr/X11/bin > /Library/PostgreSQL/8.3/bin /Developer/usr/bin ) > Different tho, they have different cases and there is that '-T' issue which is a complication perhaps better left as it is.  Only typeset gives us that '-g -aT' duplication.  Mind, typeset does deal with that elegantly: 2 /aWorking/Zsh/Source/Wk 0 $ typeset -mp "(#i)path" typeset -aT PATH path=( . /aWorking/Zsh/System /aWorking/Bin /usr/local/bin /usr/sbin /usr/bin ) export -T PATH path=( . /aWorking/Zsh/System /aWorking/Bin /usr/local/bin /usr/sbin /usr/bin ) ... now that I understand it, I can see that 'PATH path' is just how it needs to be displayed.  But not twice please and of course you can add the '-g' if from within a function.  Nope, it's just not very friendly.  I'm right about this.