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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.