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

Re: autoload +X xxx zero reference count



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




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