zsh-workers
 help / color / mirror / code / Atom feed
* Amusing (?) behavior of zsh/parameter specials
@ 2016-01-23 17:07 Bart Schaefer
  2016-01-24 18:26 ` Peter Stephenson
  0 siblings, 1 reply; 4+ messages in thread
From: Bart Schaefer @ 2016-01-23 17:07 UTC (permalink / raw)
  To: zsh-workers

This is clearly a side-effect of feature autoloading, but:

torch% typeset -m -p fun\*
typeset functrace
typeset funcsourcetrace
typeset funcstack
typeset functions
typeset funcfiletrace
torch% : $funcstack
torch% typeset -m -p fun\*
typeset functrace
typeset funcsourcetrace
typeset functions
typeset funcfiletrace
torch% () { print $functrace }
Src/zsh:21
torch% typeset -m -p fun\*    
typeset funcsourcetrace
typeset functions
typeset funcfiletrace

Note how each parameter name disappears from the typeset output after it
has been reference once.

torch% print ${(t)functrace}
array-readonly-hide-hideval-special

Probably there's nothing to be done about this, I just found it curious.
Maybe autoloaded parameters should always be hidden until they load?


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-01-26  9:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-23 17:07 Amusing (?) behavior of zsh/parameter specials Bart Schaefer
2016-01-24 18:26 ` Peter Stephenson
2016-01-26  5:11   ` Bart Schaefer
2016-01-26  9:58     ` Peter Stephenson

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