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,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 14568 invoked from network); 21 Jan 2023 20:20:42 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 21 Jan 2023 20:20:42 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1674332442; b=i4thlIkzmlbQKzoNkPX5ATHfHGeFlg1mSmu0pRNYvVBMfi6fk+nlQ3OKD5q8omDeZudkNB/BBY aL90AbcGd7Cceg/Tak8TallaXSi6bGPppKVR5fIZl1UygxWLzqIInjFKUhpi/nMjCIjl9zds3T LORNMz5LFKTguAqiNkK+LOsJkSglcK5q2pwSvkyOWKdeyTwvVYdDrq/nk15pzrkWaF5/szgaJ/ em3dJAAoO7H1CV64KGL6kmP8U/HFDyZm4+9SwDTmS/d7Vx2hVNmWVCwAzOGjXzHz1bSuBMHTwr IJeNIEq6+WYbcVXwTKx76SpLt9OkeYnyNN2JHhxf50lNwA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ej1-f51.google.com) smtp.remote-ip=209.85.218.51; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1674332442; bh=dGcf/P+i5A6iBpzWwba1A+BQmnTsDQtFpBuoTGNpLE4=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=cpZAAbpkywYKXWHJqtZ8J0dmgJAUB7hqM/eVbf6Zjx2vPU0VjPMgD0WBurlNRui6MvweNT9uZF +yPYTs6g37i7Lmer830M/bI12evHVpenbAc60SUkhyEo757be1b9P82PYNbZqv1ZhbnKlG5u+5 9FFEJoqBE5uo0Gc3j1jsd8kZ05vHwyTQvxXveKEo3nywWqVYj3nK+VtNnppx7rtSp/qrzfs1NO tG8v577nCYYpaTFWXGxMGN45z63yzcxJw1ztxt3JmHsAJ3NdkBn8dFqKtV8HYOilkLzteeNGF9 tCfrXHmqMd5DXrixL8ePHoqi+31NekQNP3RFpQmuUXYLbg==; 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-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=ZzxRM/Gt8xi4l5EcSRyu+JGc3Gy0FhW5HPKu7s4Y85M=; b=e2h7ajN+Xj3qpvaOpJJrCjFONN 3Y0vp16Q5juSb0KzJZVv7s1hA6fi6rIisW+xL4luwot8AOyQd8QRy1IdJx22WpXBn2bH4pYlnzw2d x5pImUwyqIn8Y2spvNwV7Dd6xaWbjHWETFWYMipLT1EPTL6cfkaHSdRqmFuE0PZfJ4vY/qUMH8zHo TveuDwRbFGmSy3R4mHSEhzdVyrXLdeQnb+GwPtnzrzuNOR3c2XenaHc79ROBfdpOizaThR4W6kujY KzG3BRiAjwQxUcY/xyRlpU+DN9du9zWtllh+/PTg+bOIh83GUWHVRSAe2cNHQDSVLtJ6fzLhOh/Oi AXX/pNtw==; Received: by zero.zsh.org with local id 1pJKLx-000Fto-Hg; Sat, 21 Jan 2023 20:20:41 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ej1-f51.google.com) smtp.remote-ip=209.85.218.51; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ej1-f51.google.com ([209.85.218.51]:46917) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1pJKLK-000FES-RH; Sat, 21 Jan 2023 20:20:03 +0000 Received: by mail-ej1-f51.google.com with SMTP id qx13so21709962ejb.13 for ; Sat, 21 Jan 2023 12:20:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ZzxRM/Gt8xi4l5EcSRyu+JGc3Gy0FhW5HPKu7s4Y85M=; b=KYk3Ub2CMeZoNtuyZVmSFYnPzxzFmNnDcmUTE+l+e7JPDG+JzpyH+NSmqCmZkhiuG1 kthMCKrk3k2nYiJL8szaSCECUu0eEOK0sUUiEh50wQ0hO96y4xXsYDKkCAaI5LB4/XKL g9IwCUioyKRMUGtNC5Cym4h8PA4X6gYkEXjz+RV9J1gOG27Pekxxo+hGU7eEH5gPje1s beUMJ1xycmQ+V8GnsaAqZ0IAwfPNjHnVeZAkrPxIyW7qLocxO0CY04gUmeMNUx0saWmS DOrnGtE7o+sxYC/d9XPsiko4bBCIs3meFlGbM+XJGUODgv+L1Jt4JjMcaeU1vObfxOvL 9ozA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ZzxRM/Gt8xi4l5EcSRyu+JGc3Gy0FhW5HPKu7s4Y85M=; b=ofP/Owb4YbBadxV3qQOtsXVeDx+/OMeodOMB09UHYP9RU/TaopYTDlG6yqPSFZ4YAi HHUaLtmReimMgrPig5Hn6uumtHnOVbkNyikSLQMvU/xGZrSW9Nv0/OOY/cY3qqpRbq8p 6+tjeb/NMIAcr8xXqiG5jFRqGN+Yt4vSOExFbIIsqiVnLAiFRTruMeHtU5p+58vPrwh6 oQSzO3+xH2gKcJWFJw+6Z5W0UZ2dHA96M3wCbLmViIUmFQvzC3WALKHRMqTsyzb8l0C3 dR1j5ZGmhMyaPOZ7hf8UNabJ9YQrgbfTzf+b3iVvZJ0wPYtSLofTSHIxieBMb+32c/Ed Y+vQ== X-Gm-Message-State: AFqh2kq5jVtv9Mvj+qv3ZSGBYKXpJp02QPisO44Z8TXHgqZkRElpuM+4 5kskRtWRWXwEjJejDJ6UC5yqUwrUKe/RiTGR1G294A== X-Google-Smtp-Source: AMrXdXv/L+JOwxHjqIepWYi2GykXhIOmnC6EhAhnt1xMJiY2pxcBIH5OnWJzwl2BDE1rEb7DJ0iBpnDqJK6wtczigkg= X-Received: by 2002:a17:906:dfc1:b0:7bd:3a5c:4dea with SMTP id jt1-20020a170906dfc100b007bd3a5c4deamr2058263ejc.190.1674332402241; Sat, 21 Jan 2023 12:20:02 -0800 (PST) MIME-Version: 1.0 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> In-Reply-To: <3b93f68e-d090-15c0-c15e-a3d09d702f76@eastlink.ca> From: Bart Schaefer Date: Sat, 21 Jan 2023 12:19:51 -0800 Message-ID: Subject: Re: path PATH To: Ray Andrews Cc: zsh-users@zsh.org Content-Type: text/plain; charset="UTF-8" X-Seq: 28701 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 Sat, Jan 21, 2023 at 10:54 AM Ray Andrews wrote: > > 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 :) It's actually the other way around; it's special (because it cannot be un-tied) but not unique. These scalar variables are tied, exported, and special: PATH MANPATH These scalars are tied and special but not (by default) exported: CDPATH FIGNORE FPATH MAILPATH MODULE_PATH PSVAR ZSH_EVAL_CONTEXT These all behave the same way with respect to the array value being joined by colons to form the scalar value, and they all remain tied even if you unset them (as in, both parts of each pair will reappear as soon as you assign a value to either the scalar or the array). The reason for this tied behavior is so that the scalar parts CAN be exported, because the environment cannot contain arrays.