[Pkg-zsh-devel] Bug#666168: zsh: Many function definitions are missing zsh-newuser-install, compinit, etc.

Frank Terbeck ft at bewatermyfriend.org
Thu Mar 29 13:18:07 UTC 2012


Hong Xu wrote:
> /usr/share/zsh/4.3.17/scripts/newuser:6: zsh-newuser-install: function
> definition file not found
[...]
> autoload -U compinit
> compinit
[...]
> zsh: compinit: function definition file not found


This sounds like a severely broken installation. Debian's zsh packages
do not split the function files off of the main package (yet). So that
really shouldn't happen.

What is the output of this:

  print -l $fpath
  c=( ${^fpath}/compinit(N.) )
  (( $#c )) && ls -l $c[1] || echo compinit not found

The last command shouldn't come up with "compinit not found". If it does
the output from the first command is probably reflecting breakage.

In case it's broken try this:

  % zsh -f
      (and in that new shell)
  % autoload -Uz compinit
  % compinit
  % print ${#_comps}

The `compinit' call should *not* fail and the `print' call should return
an integer in the range of slightly above one thousand.

If this does not work, your installation is very likely broken (however
that happened...).

Regards, Frank





More information about the Pkg-zsh-devel mailing list