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

autoload +X xxx zero reference count



Hi,

I have an autoreload function that does
autoreload () {
  unfunction - $@
  autoload -Uz +X - $@
}

and as it turns out this doesn't work on functions that were
autoloaded with an absolute path outside of fpath. That's beside the
point though, when I tried running my autoreloaded function, I got
this error (which you simply get for any function that doesn't exist
in fpath):
 exec.c:6054: function definition xxx has zero reference count

I bisected the error to 8f5fe841a63fecdab4416578653549689f2c592f but
that's simply the commit that adds the error message. I haven't
noticed any problems other than the error message itself though, but I
figured I'd mention it.

-- 
Mikael Magnusson




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