Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
ZSH - tab-completion of $PATH won't work with /./ or /../ in it
- X-seq: zsh-workers 37355
- From: John Polansky <johnpolansky@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: ZSH - tab-completion of $PATH won't work with /./ or /../ in it
- Date: Tue, 8 Dec 2015 23:24:49 -0600
- 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=Q0oyGVtAe60RGcbWMDgy3BDPFjhNGY6ppp+0LnHw3/k=; b=BwowrpIQGMNAjUzA3UuvkBcAHheJKOuB1z/6tWPJoBZO3JM4mnkyPMWlo44Df7Bzqs j+4vmcuZaJ6tbkuXhPuszLXjhIy03dswybWbbZsLBKBFAnxvx+KOhYdNXyCWUwRNf2Dl NEyd+IYQFSCWxw2mHAe3nXc7VbqtAWVPoGLfCVHHwAh2vtZZbjM6kDwl/aGrSqHXXuhc jMw+PgCfz/a5rwv0zbD/UdYD7jd5NtD8UZyfIZ7FCKfsC7qwOnsk1QFz9awuS8ktdeFk 5seDMfcZfv0xEAJle5qMkmcpTyUEbhQrzxuy4wShz/k66oCJcjKvmd9Nb0O5bugK7gcK Jw0A==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
I've noticed a bug in:
zsh --version
zsh 5.2 (x86_64-apple-darwin15.0.0)
It drove me up the wall before I realized but it appears if in your $PATH
variable you have a path that contains /./ or /../ the tab-completion for
commands will not search that directory.
For example
*export PATH=/Users/jpolansky/test*
which has a command *cmd_test* in it with +x permissions.
$ cmd<tab>
-- it finds cmd_test
But if you have:
*export PATH=/Users/jpolansky/./test*
*or*
*export PATH=/Users/jpolansky/../test*
*#cmd<tab>*
-- fails to find cmd_test
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.
Hopefully you will agree.
John
Messages sorted by:
Reverse Date,
Date,
Thread,
Author