Re: autoload +X xxx zero reference count
Oliver Kiddle <[email protected]>
| Newsgroups | gmane.comp.shells.zsh.devel |
|---|---|
| Message-ID | <[email protected]> |
Bart Schaefer wrote:
> I know you said "beside the point" but:
>
> autoreload () {
...
> do
> w=($(whence -v "$fn"))
There's also a functions_source associative array as an alternative to
parsing the output of whence:
freload() {
local func src
for func; do
[[ ${src::=${functions_source[$func]}} = *.* ]] && continue
unfunction ${(k)functions_source[(R)${(b)src:-X(#s)}]:-$func}
autoload -U ${src:-$func}
done
}
Still doesn't help with the reference count error, though.
Oliver