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 4103 invoked from network); 21 Jan 2023 18:54:35 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 21 Jan 2023 18:54:35 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1674327275; b=Pz3hIqTSvs8GY/A/eQbELBmjuelCLzAyM3+Od6JPQUaZ8zRdpCHPnhl6E8S0YBFzMQ74y/gAA1 HluS6VJi2JlArEyqAnLSEpna1a2DUyvD80Hai8/9Uw2r3XBjbAU86FcQvPtkw0D7Jf4qQUG/3R /mMVpxyyjux3sEQ6VhNrhYhIzfVxY6KcTEMYJCBKxwflLGpAtp09YpCqCGvCRUs2FodwLKoxiE mhoPUG3A2f3HiLK74iQiZk765FhaUxxh+StJ3v4jnkkoupxCFdhUyLIwrde0lZM01j2DRXI3EU 9llKkEh57qi4Xrb2AiSxHovbwjn5c+hH2Ougi25UfVq0pw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mta03.eastlink.ca) smtp.remote-ip=24.224.136.9; 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=1674327275; bh=UMd/i8DpHaALFZGIlvbJ2Ftzv9bp74jeTHySPvRKj4E=; 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=sxkAHv++7R5ltDkVzLeL+YWPA5QTmxseM8AaS2GLVW/8MvIcRzxEwBur4sxijFniK35gP7I9bS lsEuKLvlUbXwTHEYNMAi3Qon873DNVP8RHvrK/hkErvuSsfMdmow0+FFx04ayZEzbpPwX/YQlW j5BOUUtXzNHS24g5hoFbZGsLHlcoTT5tZAOFginu7oPkgLY4m6pbsKFRz7C9VBm5crvPfJu09P LTiXy7zdhEAnsIhw/M1pGvGQsyczkTyFMcjMHIPyUAfW9L86YT+HNtRiri1ytUcNefJgN+BlyV XzvRSDVdT8LfVSaq5fg1091W5v2YT0OV4bDR3uAwDuF/7g==; 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=iLX+cbrE9WeRQmAaN+E40oiRB9JoCkRev/gmCc5GCaw=; b=XFxu5JDxYmSIPgitifz9iuivik pVwSLof80mNXvb4wQMSQC4+Rr3u5Rwtt5I3p34vWcFCpa/dq+fGXGgjTyprIooqvOQK31o64TPq5B D40FOL2MOD4bDK80X67say9oqqPlDc9qEp0InkQYGuc33t9pOaADv9uZcN+3IMjpBWLYFA9mvU0Lo Qhzaqq48Nxlv+FneKEBbrkZHJdbE4B6mt2YB1QTCwnFmgn2Dgc4QGbu7uFQ1JFljTlAwA4z4nwj4E iyWCmubktljoZBe7aaGJ1hWFiLqGCU6pMx4pJySmkT6ix7kYWl/eVX7X3gbMQrM9R/GZM6sN6Gjqn 9fVGGr0A==; Received: by zero.zsh.org with local id 1pJJ0d-000AV0-7Z; Sat, 21 Jan 2023 18:54:35 +0000 Authentication-Results: zsh.org; iprev=pass (mta03.eastlink.ca) smtp.remote-ip=24.224.136.9; dmarc=none header.from=eastlink.ca; arc=none Received: from mta03.eastlink.ca ([24.224.136.9]:37050) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1pJIzK-0009NI-C5; Sat, 21 Jan 2023 18:53:14 +0000 Received: from csp02.eastlink.ca ([71.7.199.167]) by mta03.eastlink.ca ([24.224.136.9]) with ESMTPS id <0ROU00O41N37XOL0@mta03.eastlink.ca> for zsh-users@zsh.org; Sat, 21 Jan 2023 14:53:11 -0400 (AST) Received: from [192.168.0.4] (host-24-207-18-108.public.eastlink.ca [24.207.18.108]) by csp02.eastlink.ca ([71.7.199.167]) with ESMTPSA id JIzHpv5FljOrIJIzHpKhX4 (version=TLSv1_2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256); Sat, 21 Jan 2023 14:53:11 -0400 X-Authority-Analysis: v=2.4 cv=Kv6Lm0aN c=1 sm=1 tr=0 ts=63cc3497 a=xN66ZtSbq5jdJYpBp7G/jQ==:117 a=xN66ZtSbq5jdJYpBp7G/jQ==:17 a=IkcTkHD0fZMA:10 a=OLUBrjj2qfogI_6ffp4A:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedruddugedgleeiucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecugfetuffvnffkpffmpdfqfgfvnecuuegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfuffvfhfhjggtgfesthekredttdefjeenucfhrhhomheptfgrhicutehnughrvgifshcuoehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgeqnecuggftrfgrthhtvghrnhepiedtjeffvefgtdehgefgteekueeggeeitedutddvvdduteetffdvveelgfeukedunecukfhppedvgedrvddtjedrudekrddutdeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdegrddvtdejrddukedruddtkedphhgvlhhopegludelvddrudeikedrtddrgegnpdhmrghilhhfrhhomheprhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrpdhnsggprhgtphhtthhopedvpdhrtghpthhtohepreerpdhrtghpthhtohepiihshhdquhhsvghrshesiihshhdrohhrghdpghgvthdqkghiphfrrghsshifugepthhruhgv X-Vade-Score: 0 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Message-id: <3b93f68e-d090-15c0-c15e-a3d09d702f76@eastlink.ca> Date: Sat, 21 Jan 2023 10:53:11 -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 Content-language: en-US To: zsh-users@zsh.org References: <0dc71450-d082-93da-52f8-d4e6b97199af@eastlink.ca> <378fcf6a-edb0-885b-3d08-9ebee33bb911@eastlink.ca> <3885c637-c56f-2bb7-9a89-02009254ed75@eastlink.ca> From: Ray Andrews In-reply-to: Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 8bit X-Seq: 28698 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-21 09:01, Roman Perepelitsa wrote: > >> 3 /aWorking/Zsh/Source/Wk 1 $ set | grep "^PATH" >> PATH=.:/aWorking/Zsh/System:/aWorking/Bin:/usr/local/bin:/usr/sbin:/usr/bin >> >> 3 /aWorking/Zsh/Source/Wk 1 $ typeset -p PATH >> export -T PATH path=( . /aWorking/Zsh/System /aWorking/Bin >> /usr/local/bin /usr/sbin /usr/bin ) > Can you elaborate? Do you believe that these two commands should have > identical output? Yes.  Both would seem to be displaying values.  And in every case except PATH, that is exactly what happens. > > Does it bother you that in the following snippet the last two commands > also don't have identical output? > > % export -i8 BAR=42 > > % typeset -p BAR > export -i8 BAR=42 > > % env | grep BAR > BAR=8#52 > > These are different commands and they have different output. Neither > shows the "true" or "real" value of the parameter. `typeset -p` shows > exactly and precisely what a zsh parameter is, while `env` shows the > environment. That's a bit Byzantine isn't it?  If 'env' displays the base of the number whereas typeset displays the command by which the base was forced, no I don't think that's a genuine comparison.  It's nothing the same as PATH displaying with spaces when in fact it has colons.  In your example one clearly anticipates the other; it's actually the same information just formatted differently. Bart: > The definition of a tied parameter is that one of the pair is a scalar string with an internal delimiter defaulting to a colon, and the other is an array of the delimited values.  There's nothing magic about PATH in this respect. Ah!  So now we're barking up the same tree.  But ... all the other tied parameters look like merely the same array with two different names.  Have I made the wrong pattern? ... Yes, I have:  set | grep FPATH  ... and what do I see but colons! NUTS!  All the others, there's only one element so there's no chance for the colons to show up :(  they define as arrays, but there's actually just the one element so that's where I lost the scent.  I get it.  Many thanks.  So PATH is indeed unique but it isn't special :)