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 12056 invoked from network); 21 Jan 2023 15:18:59 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 21 Jan 2023 15:18:59 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1674314339; b=nOZGf39atu9rHShVx+HVItEiw7naFcXIlig0hATOberEIB7WtBgFH5Xu4ApEBwEQdxrLJOe12R dj7lzumPfml6Wq1x9AU1hYGFO4EzQC1qVLXGRQCypXzWCb2ttK42f0YCATH3N58sip77vlLJCz SSOWO5aRq7ut5kG3eq9m/zUMNGCvll4SKE5Lbtc/KwYL+ztDENC6BN1VnwQvW6sYbruG23effL d+LUHigRN5JGEx9eT3/Drt6W9srtXCRXuX+fZmncIBBrYKUVdSr1KqlM143xUQtMNtonWr13O7 D1Ypq7V/q/NurM34RuAK2YWZFu6gGj4aR9bbhG3OfucEgA==; 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=1674314339; bh=GFGXDaLb44AElgJAIfP4i6yEzmpw/9xGNOFPMtjeit4=; 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=EfRaC/K1FFFpksYcqn8wNmw4Jd384DnfuCUQi0DLxHCLgdBK0/MtK6Y0oEgC/7Z8pnmyPSzUQn H8OjdJCmJM8he++1KHyhFmB8wqIWVw5URxbpNblUPA1pvgg6uugnrNplp2mW+Mn1ChFGasV0NZ JKCfw3z0jIvhRC5We4KTEWighMrkXneR2oERxBL7YoNQbpdSdFTDQ6eGG9+gElMUwKsq1fFmuO IbTQ2dh4FUfdcGwCkJ/wlWdDqU4mEMP56kJdQFwpyf/NwClGWL4TGKA0cEqzKgvDnZpd2BnbeA hT5UkgOcOsA5QzdRWOwfAo1G6fEGL9VXJGKPXVlDrVqD1g==; 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=CkccqLgGpIGDCFjUUy4Fyu234R6MZYaSdOiFQojefMw=; b=DCXUHpPLtGn/qBuxH2noYDXmIr 4Uhlzov0kIbNvIG6SE1jPg0HqPQesel7A7lFoqR2PAHOmMdnibQML0fDcqPHmQcOrt8eRFWg/spiO 77ff9KkQJE7jcqAhKkiVJcu+yPVo8PX9M+LpGZTrOPT7TUy7N2yzFiEVyFxzNWCTarMjtTustJ4zs JhJrYKB+uOCPZNVGANGygNwKVQiuqk+o4kwAXpXDMIo+Y073bpszuo5qX9Tpo885mgt90Pw94wdjH 1srpdYojwK13jprYOYGrOUid9R3KwThWThW/kMLPzyTnsmXiOTUoQ+Pq5nqjc4qHsc2eyPbnYzKkK 9eGtDOFA==; Received: by zero.zsh.org with local id 1pJFdy-000Cyf-IE; Sat, 21 Jan 2023 15:18:58 +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]:33488) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1pJFdH-000CGA-DJ; Sat, 21 Jan 2023 15:18:16 +0000 Received: from csp01.eastlink.ca ([71.7.199.166]) by mta02.eastlink.ca ([24.224.136.13]) with ESMTPS id <0ROU00JH78XHWLB0@mta02.eastlink.ca> for zsh-users@zsh.org; Sat, 21 Jan 2023 11:18:14 -0400 (AST) Received: from [192.168.0.4] (host-24-207-18-108.public.eastlink.ca [24.207.18.108]) by csp01.eastlink.ca ([71.7.199.166]) with ESMTPSA id JFdFpN8jw6z6sJFdFpbPvq (version=TLSv1_2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256); Sat, 21 Jan 2023 11:18:14 -0400 X-Authority-Analysis: v=2.4 cv=bOzQYtyZ c=1 sm=1 tr=0 ts=63cc0236 a=xN66ZtSbq5jdJYpBp7G/jQ==:117 a=xN66ZtSbq5jdJYpBp7G/jQ==:17 a=IkcTkHD0fZMA:10 a=Sdht9h5oZvF_uJ2-F2wA:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedruddugedgheduucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecugfetuffvnffkpffmpdfqfgfvnecuuegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfuffvfhfhjggtgfesthekredttdefjeenucfhrhhomheptfgrhicutehnughrvgifshcuoehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgeqnecuggftrfgrthhtvghrnhepiedtjeffvefgtdehgefgteekueeggeeitedutddvvdduteetffdvveelgfeukedunecukfhppedvgedrvddtjedrudekrddutdeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdegrddvtdejrddukedruddtkedphhgvlhhopegludelvddrudeikedrtddrgegnpdhmrghilhhfrhhomheprhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrpdhnsggprhgtphhtthhopedvpdhrtghpthhtohepreerpdhrtghpthhtohepiihshhdquhhsvghrshesiihshhdrohhrghdpghgvthdqkghiphfrrghsshifugepthhruhgv X-Vade-Score: 0 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Message-id: <378fcf6a-edb0-885b-3d08-9ebee33bb911@eastlink.ca> Date: Sat, 21 Jan 2023 07:18:13 -0800 MIME-version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: path PATH To: zsh-users@zsh.org References: <0dc71450-d082-93da-52f8-d4e6b97199af@eastlink.ca> Content-language: en-US From: Ray Andrews In-reply-to: Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 8bit X-Seq: 28682 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 2023-01-20 22:11, Lawrence Velázquez wrote: > >> ... so it is unique. > No, that just means that PATH is the only global scalar that has > been tied and exported. If you tie and export additional ones > they'll show up too. > But if it is the only one then it is unique.  I didn't suggest that the same situation might not be applied to another parameter, only that it has not been.  It just served as a possible clue as to why no variation of 'typeset' will show you: 3 /aWorking/Zsh/Source/Wk 0 $ echo $PATH .:/aWorking/Zsh/System:/aWorking/Bin:/usr/local/bin:/usr/sbin:/usr/bin > No, "typeset -T" ties an array to a scalar, which is synthesized by joining the array's values with a separator character. Now that you mention it, $PATH is a scalar ... hasta be because there's no spaces. But all the others display as arrays, so that's where I went wrong there. But 'PATH path' always displays as an array too. It still seems to be an anomaly. So then if we had other tied scalars they too would only display as arrays? Anyway, perhaps this just isn't worth worrying about, $PATH is a special case (I think) because as you say it's 'synthesized' via the joining of members with the colon vs. the space. I dislike exceptions and special cases but perhaps this one is unavoidable. (Obviously the way $PATH works is by now fundamental, but I can't help wondering why a space separated array wouldn't work, like $path. IOW, given $path, why do we need $PATH at all?) Nevermind, I'm inclined to fret about things like this, it's not important I'd just like typeset to show me $PATH as it really is not pretend that's it's identical to $path when it isn't. Accuracy matters no? : $ set | grep -i "^path" PATH=.:/aWorking/Zsh/System:/aWorking/Bin:/usr/local/bin:/usr/sbin:/usr/bin path=( . /aWorking/Zsh/System /aWorking/Bin /usr/local/bin /usr/sbin /usr/bin ) ... In fact I'm trying to write a function that will show me *both* the type of all variables (typeset) *and* their accurate values (set). I've got it nailed down except for $PATH and the one exception bothers me. But life is one big exception.