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

Re: path PATH

On 2023-01-22 11:56, Roman Perepelitsa wrote:
It's still weird. I would accept this reasoning if `typeset path`
produced the same output as `typeset -m path` but it doesn't.
Something feels off.

typeset basically sux.  I know my opinion is unwashed, but typeset leads me astray in every way.  What you and Bart are writing just now is what 'typeset -p' should basically be doing. This 'display' via re-creation' -- which gives us those useless 'typeset -g ...' outputs within a function -- And the m and p switches don't play well together.  Nope, it's hard to love typeset.  Dunno, if I ask you your middle name, should the answer be to re-create your birth certificate?  Just tell me.  typeset -p is a very busted way of getting information.  OK, it's not *meant* for getting information but, prior to describe-param it's where you had to go.  Finally we have a real solution!

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