From: "Andreas Kusalananda Kähäri" <andreas.kahari@abc.se>
To: Zach Riggle <zachriggle@gmail.com>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: Why is path not a -aUT type?
Date: Tue, 31 May 2022 14:30:42 +0200 [thread overview]
Message-ID: <YpYKct1ljk9kU022@box.local> (raw)
In-Reply-To: <CAMP9c5kCYKZSJKw6o-a3Kthn2caUMKZBSPoh7LOUv+hv3k_tjQ@mail.gmail.com>
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
.
next prev parent reply other threads:[~2022-05-31 12:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-31 11:16 Zach Riggle
2022-05-31 12:30 ` Andreas Kusalananda Kähäri [this message]
2022-05-31 17:22 ` Bart Schaefer
2022-05-31 17:44 ` Lawrence Velázquez
2023-04-01 0:01 ` Daniel Shahaf
2023-04-02 7:56 ` Daniel Shahaf
2023-04-02 16:00 ` Ray Andrews
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YpYKct1ljk9kU022@box.local \
--to=andreas.kahari@abc.se \
--cc=zachriggle@gmail.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).