zsh-users
 help / color / mirror / code / Atom feed
From: Ray Andrews <rayandrews@eastlink.ca>
To: zsh-users@zsh.org
Subject: Re: "typeset -p" inconsistency
Date: Tue, 1 Nov 2022 19:42:49 -0700	[thread overview]
Message-ID: <4ba3d422-cfe3-69c7-29fe-4b7afb73c9e7@eastlink.ca> (raw)
In-Reply-To: <4f5942d7-c5e2-45fd-8da0-1de3dd8b2cf9@app.fastmail.com>


On 2022-11-01 18:13, Lawrence Velázquez wrote:
> "It seems like a simple thing" (based on zero evidence, btw) is not
> a reason to duplicate existing functionality in a less precise and
> significantly more verbose way.

Ironically my only thought was to reduce verbosity by getting rid of the 
duplication.

)

2 /aWorking/Zsh/Source/Wk 0 $ typeset -mp "(#i)path"
typeset -aT PATH path=( . /aWorking/Zsh/System /aWorking/Bin 
/usr/local/bin /usr/sbin /usr/bin )
export -T PATH path=( . /aWorking/Zsh/System /aWorking/Bin 
/usr/local/bin /usr/sbin /usr/bin )

2 /aWorking/Zsh/Source/Wk 0 $ . test; test path
typeset -g -aT PATH path=( . /aWorking/Zsh/System /aWorking/Bin 
/usr/local/bin /usr/sbin /usr/bin )
export -T PATH path=( . /aWorking/Zsh/System /aWorking/Bin 
/usr/local/bin /usr/sbin /usr/bin )

... three different permutations for one and the same variable. I 
suppose one gets used to it, but at first it's pretty confusing.  But 
that's just me.

No, I mean it seems a bit long and a bit belabored.  I'm just saying
>> that I'd expect those variables to be set to standard internal paths,
>> and if someone is running some particular distro they can add to the
>> paths as needed.
> Ask whoever packaged your zsh.  That is not the default FPATH.
>
Ah!  So that's Debian's doing.  Funny they include so much stuff for 
other distros.  I'll edit that back to stock.  Mind, it's time I 
downloaded 5.9.  When I reinstalled Debian I just went with whatever 
came down the wire from them since I had to have a shell fast.  I've got 
the time to get it from the devs now.



>> Come to think of it, those directories are in the 'fignore' ...
>> are they to be ignored?
> What?  Based on the output you shared, fignore is clearly empty.

Probably got my wires crossed.  It was an off-hand question.


>
>


  reply	other threads:[~2022-11-02  2:43 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-20 17:21 var=$( typeset "$1" ) ... not within a function Ray Andrews
2022-10-20 17:25 ` Roman Perepelitsa
2022-10-20 17:51   ` Ray Andrews
2022-10-20 17:54     ` Roman Perepelitsa
2022-10-20 18:38       ` Ray Andrews
2022-10-20 18:44         ` Roman Perepelitsa
2022-10-20 19:15           ` Ray Andrews
2022-10-20 19:35             ` Roman Perepelitsa
2022-10-20 20:48               ` Ray Andrews
2022-10-21  0:54                 ` Bart Schaefer
2022-10-21  1:58                   ` Ray Andrews
2022-10-21  2:25                     ` Bart Schaefer
2022-10-21 14:24                       ` Ray Andrews
2022-10-21 14:37                         ` Ray Andrews
2022-10-21 17:34                         ` Roman Perepelitsa
2022-11-01  5:00                       ` "typeset -p" inconsistency Bart Schaefer
2022-11-01 12:07                         ` Peter Stephenson
2022-11-01 12:40                         ` Ray Andrews
2022-11-01 19:08                           ` Bart Schaefer
2022-11-01 21:25                             ` Ray Andrews
2022-11-01 21:40                               ` Bart Schaefer
2022-11-01 22:46                                 ` Ray Andrews
2022-11-02  1:13                                   ` Lawrence Velázquez
2022-11-02  2:42                                     ` Ray Andrews [this message]
2022-11-02  3:11                                       ` Lawrence Velázquez
2022-11-02 12:56                                         ` Ray Andrews
2022-11-02 17:04                                           ` Bart Schaefer
2022-11-02 17:19                                             ` Ray Andrews
2022-11-02 18:21                                               ` Bart Schaefer
2022-11-02  3:10                                   ` Bart Schaefer
2022-11-02 17:09                                     ` Ray Andrews
2022-10-20 17:29 ` var=$( typeset "$1" ) ... not within a function Mikael Magnusson
2022-10-20 17:43   ` Ray Andrews
2022-10-21 17:33 ` Ray Andrews
2022-10-21 18:25   ` Bart Schaefer
2022-10-21 18:57     ` Ray Andrews
2022-10-21 19:02       ` Roman Perepelitsa
2022-10-21 19:06         ` Ray Andrews
2022-10-21 19:04     ` 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=4ba3d422-cfe3-69c7-29fe-4b7afb73c9e7@eastlink.ca \
    --to=rayandrews@eastlink.ca \
    --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).