Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: "typeset -p" inconsistency

On Tue, Nov 1, 2022, at 6:46 PM, Ray Andrews wrote:
> On 2022-11-01 14:40, Bart Schaefer wrote:
>> It doesn't actually re-create anything right then, but the definition
>> of -p is "display in the format of a typeset command"
> Still I just wish there was some simple way of displaying the state of 
> things without the pseudo re-creation.  It seems like a simple thing.

"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.

>>> fignore=(  )
>>> FPATH=/usr/local/share/zsh/site-functions:/usr/share/zsh/vendor-functions:/usr/share/zsh/vendor-completions:/usr/share/zsh/functions/Calendar:/usr/share/zsh/functions/Chpwd:/usr/share/zsh/functions/Completion:/usr/share/zsh/functions/Completion/AIX:/usr/share/zsh/functions/Completion/BSD:/usr/share/zsh/functions/Completion/Base:/usr/share/zsh/functions/Completion/Cygwin:/usr/share/zsh/functions/Completion/Darwin:/usr/share/zsh/functions/Completion/Debian:/usr/share/zsh/functions/Completion/Linux:/usr/share/zsh/functions/Completion/Mandriva:/usr/share/zsh/functions/Completion/Redhat:/usr/share/zsh/functions/Completion/Solaris:/usr/share/zsh/functions/Completion/Unix:/usr/share/zsh/functions/Completion/X:/usr/share/zsh/functions/Completion/Zsh:/usr/share/zsh/functions/Completion/openSUSE:/usr/share/zsh/functions/Exceptions:/usr/share/zsh/functions/MIME:/usr/share/zsh/functions/Math:/usr/share/zsh/functions/Misc:/usr/share/zsh/functions/Newuser:/usr/share/zsh/functions/Prompts:/usr/share/zsh/functions/TCP:/usr/share/zsh/functions/VCS_Info:/usr/share/zsh/functions/VCS_Info/Backends:/usr/share/zsh/functions/Zftp:/usr/share/zsh/functions/Zle
>>> ... is that really necessary?
>> Is what really necessary?  I don't understand the question.  (There's
>> no relationship between fignore and fpath or FPATH, if that's what you
>> mean.)
> 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.

> 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.


Messages sorted by: Reverse Date, Date, Thread, Author