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, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 30246 invoked from network); 31 May 2022 17:46:02 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 31 May 2022 17:46:02 -0000 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:Subject:Cc:To:From:Date: References:In-Reply-To:Message-Id: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=W0N9ltfV49d7NFhw6iLXxYHifV7F9hA/ezff0R8tqU4=; b=kuaBUHfYjfWMVQOrGIpRJXYt4J AspHmKVm++saM7rx/jFFIHLe3tBDW4iaSQfWgNl/JqfhZOUUSYJEVzgTW/ymt2XJ/bji208xX8bZl AWJ9CtzcRyeVkJnMA9ermPNEYAZIrEJr/aeozzDHwaE4b8SnRXerrNXEhq0R6s/KGbPhvok9nzxEb EQSzxSiMu0622PchUKv5riSCaRMGtNO2BecgPjtoGDeiddRWgjR0GN1THPmdPpGd+2sB3+wrOR8rk xitopzPeIRpiE/2oX7KIgmQvce8xE2EPxpYOnvYKwBtWZB3u8JH5GTPVonWdA9oEL0YZmKZrqEUvZ 5GCNmaRw==; Received: from authenticated user by zero.zsh.org with local id 1nw5wQ-000MwE-7V; Tue, 31 May 2022 17:46:02 +0000 Received: from authenticated user by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1nw5vs-000MEc-M1; Tue, 31 May 2022 17:45:28 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailauth.nyi.internal (Postfix) with ESMTP id 223A327C0054; Tue, 31 May 2022 13:45:27 -0400 (EDT) Received: from imap48 ([10.202.2.98]) by compute2.internal (MEProxy); Tue, 31 May 2022 13:45:27 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrkeekgdduudejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderreejnecuhfhrohhmpefnrgif rhgvnhgtvggpgggvlhojiihquhgviicuoehlrghrrhihvhesiihshhdrohhrgheqnecugg ftrfgrthhtvghrnhepheffhfeujeehuefggfefueduffelvdelgeffueehvdevkeeugeei udfgleeufeetnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homheplhgrrhhrhihvodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdduudeh udekjeejtdegqdduudelvdejfeekhedqlhgrrhhrhihvpeepiihshhdrohhrghesfhgrsh htmhgrihhlrdgtohhm X-ME-Proxy: Feedback-ID: iaa214773:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id EF13B31A0061; Tue, 31 May 2022 13:45:26 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-591-gfe6c3a2700-fm-20220427.001-gfe6c3a27 Mime-Version: 1.0 Message-Id: <2889348c-ca0c-4425-85c0-846a0c4f2bba@www.fastmail.com> In-Reply-To: References: Date: Tue, 31 May 2022 13:44:28 -0400 From: =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= To: "Bart Schaefer" , "Zach Riggle" Cc: zsh-users@zsh.org Subject: Re: Why is path not a -aUT type? Content-Type: text/plain X-Seq: 27829 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 Tue, May 31, 2022, at 1:22 PM, Bart Schaefer wrote: > On Tue, May 31, 2022 at 4:16 AM Zach Riggle wrote: >> >> Is there any reason that, by default, we do not >> >> typeset -aUT PATH path > > The main one is that PATH is imported from the environment and it's > messy to immediately mung it and push it back there before we've even > finished the rest of pre-RC-file shell initialization. Further, it's > not up to us to decide how that value should be passed through to > child processes when zsh is used as a launcher by/for some other > application. It's also presumptuous to assume that all users want this. I actually stopped deduplicating PATH/path recently because I want to know when some application or other is trying to modify it behind my back without having zsh possibly deduplicate the evidence away. -- vq