zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
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 10:22:59 -0700	[thread overview]
Message-ID: <CAH+w=7bGk4FytRXDW_paf15j78B9Ds79AXOZ7bpkAE5JfQ_OBw@mail.gmail.com> (raw)
In-Reply-To: <CAMP9c5kCYKZSJKw6o-a3Kthn2caUMKZBSPoh7LOUv+hv3k_tjQ@mail.gmail.com>

On Tue, May 31, 2022 at 4:16 AM Zach Riggle <zachriggle@gmail.com> 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.

Not directly relevant to your intent, but "typeset -T XX xx" implies
that xx is an array, the -a option is not needed (and as Andreas
points out, wrong for XX).


  parent reply	other threads:[~2022-05-31 17:24 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
2022-05-31 17:22 ` Bart Schaefer [this message]
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='CAH+w=7bGk4FytRXDW_paf15j78B9Ds79AXOZ7bpkAE5JfQ_OBw@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --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).