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 23676 invoked from network); 31 May 2022 12:32:04 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 31 May 2022 12:32:04 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1654000324; b=YQyNmw2FdNxZZUnsS5Agj3bOCZBphESokFcxsqqBmKm7cBniM+X3jPTvukELPBtTkXBiAePQl2 X1HrRCJ612Iz7uJdCxGxh/iAYkpon+RB8Fwg/4hhOklxBjYEOfvl6YFI9swX7wLTbI6Hu3sz6c f6RXQckUTvv6bCn5PALryBgFTquhG+WS+AZFyzUNUiBbP1sVrMOZv6u6050jWQW1bIWExUIRve SQPb5DV4Xh2h9rPPtE2ZE+AHrw+GMarVtVvzkkV/6czLCTfOvVFU4x17Y6m9gFYalASG4GrWFb LFnfm+A/ctdlUqOu29nhgiUBZbmcz5yWvzDRaQuQ8EtlmA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (hekla.abc.se) smtp.remote-ip=158.174.61.227; dkim=pass header.d=abc.se header.s=default header.a=rsa-sha256; dmarc=none header.from=abc.se; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1654000324; bh=1LPwCImMooRGSt+D94YzEejL9+cr1/g7d2/yQ8Y8lmw=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Transfer-Encoding:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:DKIM-Signature: DKIM-Signature; b=C3f7xwCpe84l7sxFhGH3G1Mhuo+492m7AKDK6kRKHgowPH45zhUiWQrDQgyJqYNZMeADJGMxMg tEaNFhHMZD5XwkJ2FeORtXjFMIs7TfASWjrTEo5mORsOwDhn9XKhyMzVpJNh+PPtzBjScuv0e2 uqNmEXk0sphmVeticTXxhcUQH5sF6WjgAF1U7TiQV5XBIScGI3R71q81tr8XdpERvdC6n3G7AF 3EOx5dXZCO6mmI/9fYOS3evvQxfjl6clrC6QXsmrrmi7WVX8u5GivgcnIM+gL4d+qRGM9bedda 1qy/dbjUf9de6eknuZfgc80AyZ2Z/yNbfl799K90l9bKUQ==; 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:In-Reply-To:Content-Transfer-Encoding :Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID; bh=OorEF7E81sSLGoJVjU1n/eplr4oQ73Rp+YKWied/8tI=; b=B6K1Oe2q521JbWD+v6nrSuKm/+ ad0BcqG0MksdMlinTN6+n53wEr3LLAuVPj1LD+UKlzaBoiiL80LL2vGPlNl05xgqrJMJF1tPMOjDF 4p2oR1muj1FfxnckJC2BHZWZwg2mRb11uDbhGo81ly8Az775iPISIr/biyz8sYfSxPSBtL+UePqXb 91yJKkLQBgA6KOHDU+jplkbJ9A/EijKLZOKMfx22bkorINuiKWmCzjYZfSGukSnaCSj0H3AZczIL+ k2s/mxqoNz1AxhLf39RGHfGR5i2VFZBievuRJSdGIH1YBlS2bKlnyq9towPyjfsTBlYNCJ3wdHfVF E2do7cuQ==; Received: from authenticated user by zero.zsh.org with local id 1nw12Z-000B7J-6g; Tue, 31 May 2022 12:32:03 +0000 Authentication-Results: zsh.org; iprev=pass (hekla.abc.se) smtp.remote-ip=158.174.61.227; dkim=pass header.d=abc.se header.s=default header.a=rsa-sha256; dmarc=none header.from=abc.se; arc=none Received: from hekla.abc.se ([158.174.61.227]:15428) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1nw11I-000AJL-3E; Tue, 31 May 2022 12:30:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=default; bh=OorEF7E81s SLGoJVjU1n/eplr4oQ73Rp+YKWied/8tI=; h=in-reply-to:references:subject: cc:to:from:date; d=abc.se; b=g4mQJ78pPnnMSS672iucKii6irh7UuAMToEPOH8D6 4CWQyVEugHnpOCJWy2UVbcP7wBFJdqlIIeE5I4kAgn6/umOQXNc3a2N7yQZ9nJ8P4igojn 2Cb8nqET/LpwueWYARJX0xjYU/4KuvvkEvJWOofJRRxzY7r4LwbyMj4egjyFVJaPfclwLw f8yoxTnG8mtJbWM6+EmnW2VoagXqz+AufGvwlXxf4uj3uMajXkh6g/T/h1Rqek4zppBonb DbXo5QzzQQlohS8UPXwa2dUG0qKGXaErjrUS6Z2zldY6DWR2lSU+smlYxrb4MuSmnfoJxh R+nPqxTXDFmrsvlHWvY6Q== Received: from box.local (83-233-144-228.cust.bredband2.com [83.233.144.228]) by hekla.abc.se (OpenSMTPD) with ESMTPSA id 7a9bd17c (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Tue, 31 May 2022 14:30:43 +0200 (CEST) Received: from localhost (box.local [local]) by box.local (OpenSMTPD) with ESMTPA id 6adeea00; Tue, 31 May 2022 14:30:42 +0200 (CEST) Date: Tue, 31 May 2022 14:30:42 +0200 From: Andreas Kusalananda =?utf-8?B?S8OkaMOkcmk=?= To: Zach Riggle Cc: Zsh Users Subject: Re: Why is path not a -aUT type? Message-ID: Mail-Followup-To: Zach Riggle , Zsh Users References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Seq: 27827 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 06:16:17AM -0500, Zach Riggle wrote: > It seems to me that having duplicate entries in $PATH / $path is a bit > silly, and makes some things hard to do. > > Is there any reason that, by default, we do not > > typeset -aUT PATH path > > > Automatically? > > *Zach Riggle* PATH is no array, so "typeset -a" feels wrong. PATH and path are already tied by default, no? As for "typeset -U", that's useful to have, but I can definitely see that one may want to e.g. temporarily add a directory path at the start of PATH/path and then remove it again without disturbing the old values of the variables. -- Andreas (Kusalananda) Kähäri SciLifeLab, NBIS, ICM Uppsala University, Sweden .