Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Possible bug with man -M /some/path completion
- X-seq: zsh-users 18859
- From: "Keerthan jai.c" <jckeerthan@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Possible bug with man -M /some/path completion
- Date: Tue, 27 May 2014 19:33:13 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=zAA8D0qITmxVepc01NuKnqM9Sg8k2g+3bsXq6Qe3se0=; b=RvVLmI/5SvAe1QW9Fi6c2bvpWW/jaj3VmRezmB182lskVfbzqJ+T08qjzatPfnsg2n Uy05bTc6DHAeNFlQY2raiYJiziZqR0ZG8zaLyHesIXPxwvAgR92V3lRGpVVyeztf5XpJ wxI67FSX+YwL8APhlwaiN+t3Ve5u27WzFLCWvoP7xJzcLCLxFEFjGMMm5YfJHsR74q/1 OSA44lFZjiSszaQZsu28ahPpJHFSbT7Rs+2SniLNgmV1pI9I4xm4ty3+s4EyYYIheAgb 3CSTuHXuZ0l+o+dgtFhDD6kjwp9GQrP6Sk6JREgx13UeW3QgMGhNAaeI2ToJ0XIpKCRi CuVA==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
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