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

Possible bug with man -M /some/path completion



According to man man, the -M option overrides manpath rather than appending
to it.
However, zsh completion shows entries outside the path specified with -M.

I think this is the relevant code:

  integer index=$words[(I)-M]
  if (( index )); then
    local opt
    opt=$words[index+1]
    _manpath=($_manpath $opt)
  fi

I think _manpath should become just $opt
-- 
have a nice day
-jck


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