Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Amusing (?) behavior of zsh/parameter specials
- X-seq: zsh-workers 37743
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Amusing (?) behavior of zsh/parameter specials
- Date: Sat, 23 Jan 2016 09:07:36 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:to:subject:mime-version:content-type; bh=FK7HT+ZtrjH54JZhzL1oTCDGdw5dseVySAavmQRhPWU=; b=GYoTknyE6WYYhwFxQD9UNM6Ga8HiTZP/hcH50aoNVPdXgdiURqCWLB9J8KTgIqxEt6 jen4eEY26UmN8bL/f+Hhe3/KM63MvG9uHgG/IGKpPHtMGnF2M3GYD70jFrHNu5HI3z8G 6J9SCuc5jjBM5QzL7Jcw7qOWKVhsyxxd0vWak1lzFYm/1/z/GLhJpgBUq0YSOPMmOSMN LQr8Cyq3BJoT73g2iDDEtJ/ayYoJU06DiwCKo218p08LMapfOgPObBOw/+OvALqamMwR 0iEu/Oro3E8Y1XV1iFimD0nJHmxDm4UhFdv2hH0EThOxrn9JDxxwFXdp8CFVTcJLRGwx fpfw==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author