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

Re: ZSH - tab-completion of $PATH won't work with /./ or /../ in it



On Tue, 08 Dec 2015 22:22:36 -0800
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Tue, Dec 8, 2015 at 9:24 PM, John Polansky <johnpolansky@xxxxxxxxx> wrote:
> >
> > While I realize it's unusual to have . or .. in a path.. it can happen
> > through scripting and to me this seems like a bug which should be fixed.
> 
> The command hash table has NEVER included commands that appear along
> any relative path.

You can rationalise your path simply enough in one of your start-up
files:

path=(${path:a})

pws



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