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=-6.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 22384 invoked from network); 21 Oct 2022 19:08:45 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 21 Oct 2022 19:08:45 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1666379325; b=aY503Qpg8TzIslatGHAjbXQ8VMWot5/c6niNdmRrBev4c9/4o+DdYb3V0o1IdawM3DQkOzEouV zQpL5qaTIW9K/SNe6wvOJqS8Ju6GT3n5MgBp/uabmCDP0v8WGSgId2WTXhDYMsDTPz0p5Lw2Qr tgj2YU9uIF3+NmiXJfKvxXLOY8R90B1m2n7Zv1LXsdgFBmpVA0WR0GpKXwyWQ/BErmGO/iNp+T G7fcIEHwQpdATQmUyL+FELn2KGQ87uYR7qN3WEuNHibnlrWHG9XxTJg9HssZE56V3W3cmJ3DSI MPDxo9Ddx5PFeBRxJj9W8oX68NYRvD2wxe0kI4Zq+6W+Ig==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mta02.eastlink.ca) smtp.remote-ip=24.224.136.13; 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=1666379325; bh=dBCDzOOc4W9JbcZhT7w70WDKfC2aBsL0vkCa1ybkbFQ=; 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=Su4kI3GMboioXDSafrzzQTTVbVfjuv90dKsE959gXYTWdlbgwCI9ivjpNEtJImo1WDvnd/S6zi 3HMWARtnNZvPmxEwA+9olP+ib2veeyf6mXcS2g68a+ZaTLBpi7boC9PUpjS7XRH2LBYCYqujHZ 0g2+vm1eAdAYctl0jeHZbmJYhN6YFEqwGDnc99zEZm2zvvqJRROxsO3ZRA+L+wP4CQeTOozCG6 i+T51WyeT1TbIZn7m+/O/s8jOKg3MfWrYZNSGwl2zqGUxFNxQjZ3AHDyRXZTFwd8On2Q9+8Xc5 N4iWdWhDHfLDHn8b/Zl645XAkY5gYiEcZQNtI/V34UXI3Q==; 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=KUIHC9pENbdzf5IDupRRnpSae91g2+4NxOPXq7BWEEU=; b=mF6XzSLjfuKoRSRR56ilzD5eZq LZAaGzzrAohnQbBcpoESG2a6pc2LckjPtL9zqGcq24bs2+E8Tsircc9slXDLKqdsdHpn+M7Rmsq8G arET7mDVo1A2ezipUyc+aPpkZIcyvCdzLj+JR/p8AFUNZgN1RDkb8xtMDO1vn6efx42azodDaEt3g jCRvExVN77OpfIAB/G66r7Dm3AQZd01/E09VoJeGI3FrYGVuxZiVoEkup9z6GFM9y8pieqPWArWkK aYGBsVKlh9Hc4NTDyK2/L7lXzYQjcn2J8xXjI32iOTWALSvdJt2quKtyNrdirumaDB2ByhJnXY/GE yW57L1bw==; Received: by zero.zsh.org with local id 1olxNs-000Ig5-Jz; Fri, 21 Oct 2022 19:08:44 +0000 Authentication-Results: zsh.org; iprev=pass (mta02.eastlink.ca) smtp.remote-ip=24.224.136.13; dmarc=none header.from=eastlink.ca; arc=none Received: from mta02.eastlink.ca ([24.224.136.13]:49682) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1olxKH-000Hj0-Cz; Fri, 21 Oct 2022 19:05:02 +0000 Received: from csp02.eastlink.ca ([71.7.199.167]) by mta02.eastlink.ca (Oracle Communications Messaging Server 8.0.2.2.20180531 64bit (built May 31 2018)) with ESMTPS id <0RK400DI0A4RH750@mta02.eastlink.ca> for zsh-users@zsh.org; Fri, 21 Oct 2022 16:05:00 -0300 (ADT) Received: from [192.168.0.2] ([24.207.18.108]) by Eastlink with ESMTPSA id lxKFooFI3NYQUlxKGoLhwB; Fri, 21 Oct 2022 16:05:00 -0300 X-Authority-Analysis: v=2.4 cv=JMn+D+Gb c=1 sm=1 tr=0 ts=6352ed5c a=xN66ZtSbq5jdJYpBp7G/jQ==:117 a=xN66ZtSbq5jdJYpBp7G/jQ==:17 a=IkcTkHD0fZMA:10 a=gir0-LH0AAAA:8 a=OBEUXbKTiO3THhblH4wA:9 a=QEXdDO2ut3YA:10 a=aLewGyoHDmJ4ULJHWpSz:22 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeelkedgudefudcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfgtefuvffnkffpmfdpqfgfvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpeftrgihucetnhgurhgvfihsuceorhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrqeenucggtffrrghtthgvrhhnpeeitdejffevgfdtheeggfetkeeugeegieetuddtvddvudetteffvdevlefgueekudenucfkphepvdegrddvtdejrddukedruddtkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvgedrvddtjedrudekrddutdekpdhhvghloheplgduledvrdduieekrddtrddvngdpmhgrihhlfhhrohhmpehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgdpnhgspghrtghpthhtohepuddprhgtphhtthhopeiishhhqdhushgvrhhsseiishhhrdhorhhgpdhgvghtqdgkihhprfgrshhsfigupehtrhhuvg X-Vade-Score: 0 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Message-id: Date: Fri, 21 Oct 2022 12:04:59 -0700 MIME-version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: var=$( typeset "$1" ) ... not within a function. Content-language: en-US To: zsh-users@zsh.org References: <6c9c8af2-9e00-ab2b-e7df-0c9abeedbc5c@eastlink.ca> From: Ray Andrews In-reply-to: Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 8bit X-Seq: 28257 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-10-21 11:25, Bart Schaefer wrote: > On Fri, Oct 21, 2022 at 10:33 AM Ray Andrews wrote: >> ... typeset politely links the two variables, but printenv is less >> intelligent. > Lower-case cdpath is not an environment variable, so printenv would > have no reason to print it. Sorry within sorry:  yes of course, even with 'path/PATH' one is exported the other is not,  I assumed that since they were tied together they must have the same scope.  The only difference that I was zoomed in on was the absence of the '-a' in the one case -- but there's the other difference as well.  Easy to lose the scent!