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 30874 invoked from network); 21 Oct 2022 01:59:16 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 21 Oct 2022 01:59:16 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1666317556; b=Ma/99Tnk0Tivc/W/mx43IxdVVQcKnMZBcw43p1nd/qkqVFJV0v8/mQR9q0gKrQRmQdEQjeMdlX KMwNT62TdM/syGCQRgbUX32w6pGoqpr2Nr/RgbqOeGsLqOxdsYj3i4z8re4Nlk7Egzo5MwzeUw Ocujrzopv5MO1/d+GubXbJ9yNDIZUaDmRrd03NKiwggNncv0c9ZONz37u71FvIcaHDT+ZvvCmx do0qXTbcvlQ6q0EJEd5LDrOGNg6eO4OFSpQWVw9Bx7R0GTofK82fOD3fNyC1Y78TZ9EU0XZ/AU pEK13kWXujaYqgmeBPWp21Kn+Uqmpm4EsQyhtk9GnEp+rg==; 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=1666317556; bh=jYIPbb4QtPrCDzb8H00m9tQVXEC1JE1BO1ImcSovrFs=; 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=Smi3cQOQdZIKCDbp8vZGFUox3Agv62vk4fPaJwM7COHw8yGC5CW5yYix672BqVDG6gTa2vgrVY vspmZiUob+eTYXqRKYGz/+Q0B3y8DpWWyL7w5o33bI0335xNhcmUIDXsSHmF6UTCKTQWsDFjDA CLb+zz4jjueqaQJF7T2HQ0D10jn4ud/riSxk6YKnLlky9U/HNttG9szPwvX4P7H0lhUZdRZwgE qWgy2g9eJHjwQ5/UdA9fa/kJ1MpsOLC1hXzuhIqj3XFgGrv/5iTjsp6WNX4f6y0ztWxi23GG3F SRxaPayRRs22QPL19zbXWPUucZLJ8N6itWtb8vj+splPqQ==; 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=yqcRLCRmPACthHAeMnh2M+i712pVHDHF0vD3cTCGtqg=; b=E1IS5NwZcqib7p+q1Rc3kZDWKp QDnffXSYLDQ9Ev9QSjJ/zAR3T1iGU/UBXasAgefNZCwkZIMDSM64rxWZUsFtmfvyKZQSQd07ic7Q1 UWBqlfsZfYYQb7PmBlRt64ljYwhAtKxt4uHEW4pkhf+Aeemt984oqVTLJgwBmMWuy8M6gKhAWuAPp X3wVc5Qt0MxNiLykYrCFUrs7FYz8mdlSk/xXguyJg0aVrQplvDv+BIN1cwJhN8gKfr5ohUDKHCcmu RrIl/EMZ5XbzRtT1y4JAj+Tqjo039Rj2MqZbHhuvIclZht7v0hBj+SM1JO6htu846ryAUrC9YYWf6 guFoqwJg==; Received: by zero.zsh.org with local id 1olhJb-0002e0-J1; Fri, 21 Oct 2022 01:59:15 +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]:35905) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1olhIv-0001xs-Os; Fri, 21 Oct 2022 01:58:34 +0000 Received: from csp01.eastlink.ca ([71.7.199.166]) by mta04.eastlink.ca (Oracle Communications Messaging Server 8.0.2.2.20180531 64bit (built May 31 2018)) with ESMTPS id <0RK200EK1XG6IUD0@mta04.eastlink.ca> for zsh-users@zsh.org; Thu, 20 Oct 2022 22:58:32 -0300 (ADT) Received: from [192.168.0.2] ([24.207.18.108]) by Eastlink with ESMTPSA id lhItoo717lmAklhItouqKs; Thu, 20 Oct 2022 22:58:32 -0300 X-Authority-Analysis: v=2.4 cv=Y/M9DjSN c=1 sm=1 tr=0 ts=6351fcc8 a=xN66ZtSbq5jdJYpBp7G/jQ==:117 a=xN66ZtSbq5jdJYpBp7G/jQ==:17 a=IkcTkHD0fZMA:10 a=sN-ijUCL_Yp_mHL8srQA:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeeljedgheehucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecugfetuffvnffkpffmpdfqfgfvnecuuegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfuffvfhfhjggtgfesthekredttdefjeenucfhrhhomheptfgrhicutehnughrvgifshcuoehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgeqnecuggftrfgrthhtvghrnhepiedtjeffvefgtdehgefgteekueeggeeitedutddvvdduteetffdvveelgfeukedunecukfhppedvgedrvddtjedrudekrddutdeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdegrddvtdejrddukedruddtkedphhgvlhhopegludelvddrudeikedrtddrvdgnpdhmrghilhhfrhhomheprhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrpdhnsggprhgtphhtthhopedupdhrtghpthhtohepiihshhdquhhsvghrshesiihshhdrohhrghdpghgvthdqkghiphfrrghsshifugepthhruhgv X-Vade-Score: 0 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Message-id: <530b18d0-5e72-6afd-7448-cdff9c119bda@eastlink.ca> Date: Thu, 20 Oct 2022 18:58:31 -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: <5f18c162-e111-21ba-3ebe-ece09a477ecd@eastlink.ca> <552657de-31ce-255a-bc8d-7c9cd4b8eabd@eastlink.ca> From: Ray Andrews In-reply-to: Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 8bit X-Seq: 28244 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-20 17:54, Bart Schaefer wrote: > Yes, it's unfortunate that typeset (without options) was ever given > the function you describe as "passive reporter". Worse that it's > synonym "declare" behaves the same. Prowling around in the parameters there's lots of little mysteries,  $ typeset -mp CDPATH typeset -T CDPATH cdpath=(  ) ... but the same command from within a script or function gives: typeset -g -T CDPATH cdpath=(  ) ... and if I scan the entire output of "$ typeset -p" and look for 'CDPATH' I get: typeset -T CDPATH cdpath=(  ) typeset -aT CDPATH cdpath=(  ) ... and from within a function the '-g' is added. typeset -g -T CDPATH cdpath=(  ) typeset -g -aT CDPATH cdpath=(  ) ... what's the truth of the matter with CDPATH?  And how in hell can there be two of them? I get the feeling that this whole neck of the woods hasn't been given a housecleaning since ENIAC, it's just always been this way and probably has to stay this way due to the ancientness of the tradition.  Probably goes back to sh 0.1 ... and while I'm whining I notice that 'set' never does anything like: "CDPATH cdpath", it puts them on separate lines.  Dunno, couldn't they have separate values?