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.4 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 28493 invoked from network); 22 Jan 2023 17:24:24 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 22 Jan 2023 17:24:24 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1674408264; b=QrvMGPbHPPN14ayTe6ugja7SdTZ278KhakZahuYx9tGNEOqJsoKGRI/Hu9I0gfdrd/aepTgO6D OFA5QkeW1ZkkE017ILNY0NXdhubrF6XzlbOg6RmBQb4g8Jjzisin+GzWDeftk18bIB5kFC+bq5 mVDG2fTRaVL0+ATjhxqQApSOF8OAs82FVh2/i7tPA0KhkUU1oC85jOF+5+ULFvNsKXhEi+PspB BGKPjoXG8M0AFQMg6ziyoysqW7Nnvws+/kWBQtZLKHwZ2vLUn2J1SF/sbpVlrxDsWAtLxs4k9i gWs99/gflXZNFDYwC8bv7gtMkIJZev/uwlWUvQdBm9q7Mg==; 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=1674408264; bh=RZWKQXwMia/Jgkav/1MXypJU6PwALxonF8DdYeTd/Qk=; 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=WhdvPGBUSnMwYvzvMM44oWYmDLg/I1gXllLJPGSqZfk2hU2QbIrjwiA3q9sC51EMm6PZZzqQkR ZE5whIogYWhVISeJLESUl+07nyR/hEVul2rKVqgX7Z17+LC0oum7HuMsJrOlGR7cl2t5BtCY+u 2xcRPGAhnXpfltM0lOuu4aop4/SKWQQ8eFJfrlUbXa0LizJfEyiCqLDHAM3P4L5zQfbhCYTahw 8evwbfs0/Gr6HnYZp+KcvHWlxd4qKWRlWPEVQeRaC+9dlqWd+oPOKbzhlsDRYz6G60XqzuQeuu GeTsD8a+fJ4zgc4ZsxK1h0BRR0uqkjMHFZrdJ7yyDb4+lA==; 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=dxBfhRJD6WLK2Q5sn+Acsqhv+2TaKdsOUCbl0vJ2kVY=; b=HZpxvOPr//JsUEh3QMrfRErpkl Ax95WsHmxF5TnHQyawQBqpRm+CrI6RoilAzm07f+8fY7FZhlACTDNUF6cT/3bue4TQmgQWf1/BTen JYQZo/cIuyG+dNY/RYUu3cOnhxukZLKuekA3rxYo9frR9V4NhoJ7kPZA7ftWOhend5afIUkVO/COI yodf3NG7i0mEcldiAmSPPJ+yVHxDso0MgPw6IAgAxpS336whmhDmU5SLYTB0WVjOlUZ5uV9KDKKH8 J8NtqmCwgWUqWUmT7XjVFJnatbVYShONFN/Y6eeuxCegm4fybe2rfsLcOQEFyzdaSGGlaBn4CDpDx WYrOW6PQ==; Received: by zero.zsh.org with local id 1pJe4t-0009HK-Tv; Sun, 22 Jan 2023 17:24:23 +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]:53525) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1pJe3w-0008Yl-Lr; Sun, 22 Jan 2023 17:23:25 +0000 Received: from csp01.eastlink.ca ([71.7.199.166]) by mta02.eastlink.ca ([24.224.136.13]) with ESMTPS id <0ROW000M6AF0KHC0@mta02.eastlink.ca> for zsh-users@zsh.org; Sun, 22 Jan 2023 13:23:23 -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 Je3upQIrb6z6sJe3upbonT (version=TLSv1_2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256); Sun, 22 Jan 2023 13:23:23 -0400 X-Authority-Analysis: v=2.4 cv=bOzQYtyZ c=1 sm=1 tr=0 ts=63cd710b a=xN66ZtSbq5jdJYpBp7G/jQ==:117 a=xN66ZtSbq5jdJYpBp7G/jQ==:17 a=IkcTkHD0fZMA:10 a=Rusc7kN4lCvsbpUL9GAA:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudduiedguddtfecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfgtefuvffnkffpmfdpqfgfvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpeftrgihucetnhgurhgvfihsuceorhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrqeenucggtffrrghtthgvrhhnpeeitdejffevgfdtheeggfetkeeugeegieetuddtvddvudetteffvdevlefgueekudenucfkphepvdegrddvtdejrddukedruddtkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvgedrvddtjedrudekrddutdekpdhhvghloheplgduledvrdduieekrddtrdegngdpmhgrihhlfhhrohhmpehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgdpnhgspghrtghpthhtohepvddprhgtphhtthhopeerredprhgtphhtthhopeiishhhqdhushgvrhhsseiishhhrdhorhhgpdhgvghtqdgkihhprfgrshhsfigupehtrhhuvg X-Vade-Score: 0 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Message-id: <73e9734d-6df4-693a-35b0-b2b9d6b05141@eastlink.ca> Date: Sun, 22 Jan 2023 09:23:22 -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> <378fcf6a-edb0-885b-3d08-9ebee33bb911@eastlink.ca> <3885c637-c56f-2bb7-9a89-02009254ed75@eastlink.ca> <3b93f68e-d090-15c0-c15e-a3d09d702f76@eastlink.ca> <07323898-9985-4e9f-8b54-c08fd8510fe8@app.fastmail.com> <08102bc6-b331-504f-fcd5-28fa3cdb0e2f@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: 28713 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-22 08:15, Bart Schaefer wrote: > This is exactly what I suggested in zsh-users/28317 last November, > except I wrote it as a one-liner using the $parameters variable. It can take a while for things to sink in.  One has to be ready. There are times when some question or some mistake of mine leads to a tsunami of fixes, cascading mental adjustments -- mistakes within mistakes, new ideas, re-thinks -- a whole lot of dominos fall over and I can't stand them all back up again in one go. > The operating system defines the environment as an array ("C" > language) of strings; you can't nest the arrays. The way an array is > represented in the environment is by convention to separate the > elements with colons. I just love these deep insights.  So this drills right down to a C limitation!  Or should I say an OS limitation?  C would permit a structure even if Linux won't countenance it.  Mind, it's the sort of thing that's so deep in the bedrock that a change is hardly possible.  Your answer cures  me of any whinyness -- not zsh's issue.  Death and taxes and no arrays in the environment, get used to it.  But now I finally get the point of those colons, it seemed dumb -- PATH is 'naturally' an array.  So we have $path :-) And I can confidently extrapolate that path is created from PATH, not visa versa, yes?  (Cuz a given shell can only 'inherit' PATH, thus the friendlier path must be the derivative.)