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

Re: "typeset -p" inconsistency




On 2022-11-01 12:08, Bart Schaefer wrote:
On Tue, Nov 1, 2022 at 5:40 AM Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
But the 'typeset - g -aT ... ' remains a bug as you said?  Or at least a
redundancy?
That's not what I said, in either case.

Right, I just dug up that reply.  My issue was the '-g' but that wasn't your issue.


The two examples above aren't really "redundant" either.  You asked
typeset to display commands to re-create all the current variables.

No mens rea, I have no thought to ask typeset to re-create anything, I just want a list of current variables, thassall.  As we discussed, there's this ambiguity between the passive and the active.  Strange that a request ends up as a re-creation.  Anyway I just filter the duplicates out, but it does seem very belabored.  I'd just use 'set', which doesn't show the duplicates, but then again typeset shows you the type of the variable.  Not to whine, but it doesn' t seem much to ask for a 'just show me' functionality -- set, but with the types.    No recreation of anything.  BTW


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?  Wouldn't we expect folks to add to their fpath, or to the above, as they need?





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