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:
parent
665b54c9e4
commit
77c1b9a3d4
1 changed files with 1 additions and 1 deletions
|
@ -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 -/
|
||||
|
|
Loading…
Reference in a new issue