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

compdef weirdness with function



If I add a completion definition for some arbitrary, undefined symbol,

   % compdef _perl_modules foo

The completion works normally:

   % foo Acme::<Tab>
   Acme::Bleach        Acme::Magpie        Acme::Morse
   Acme::DWIM          Acme::Magpie::l33t

However, if I then define foo:

  % foo () { echo "args are: $*" }

The completion stops working, even if I re-execute the compdef command
above. What am I doing wrong?

--
Ian Langworth



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