1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-05 11:01:13 +02:00

zsh-workers/7903

This commit is contained in:
Tanaka Akira 1999-09-17 09:56:32 +00:00
parent 665b54c9e4
commit 77c1b9a3d4

View file

@ -67,7 +67,7 @@ elif [[ $PREFIX != (\~|/|./|../)* && $#cdpath -ne 0 ]]; then
# variable names, but it hardly seems worth it.
# Note we need a tilde because cdablevars also allows user home
# directories, hence we also need nonomatch to suppress error messages.
if [[ -o cdablevars && ! -d ${tdir::=${PREFIX%%/*}} &&
if [[ -o cdablevars && -n "$PREFIX" && ! -d ${tdir::=${PREFIX%%/*}} &&
-d ${~tdir2::="~$tdir"} ]]; then
PREFIX="~$PREFIX"
_path_files -/