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
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=(  )

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