Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
../ in PATH and completion
- X-seq: zsh-workers 17740
- From: Clint Adams <clint@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: ../ in PATH and completion
- Date: Sun, 29 Sep 2002 01:49:13 -0400
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
1% mkdir /tmp/testdir /tmp/otherdir
2% touch /tmp/testdir/foobin
3% chmod 755 !$
4% zsh
A/1% PATH=/tmp/testdir
A/2% fo<TAB>
(will offer foobin as a completion, and hash it)
or
B/1% PATH=/tmp/otherdir/../testdir
B/2% fo<TAB>
(will not offer foobin, and not hash it)
In contrast, bin_whence likes it just fine.
C/1% PATH=/tmp/otherdir/../testdir
C/2% which foobin
/tmp/otherdir/../testdir/foobin
C/3% hash -L
hash foobin=/tmp/otherdir/../testdir/foobin
Why the inconsistency?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author