diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2008-06-21 21:36:00 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2008-06-21 21:36:00 +0000 |
commit | 6763a3cc555fcf216e2be15ab3b866ead0138e0f (patch) | |
tree | c826cd17b4086d69d6769e87c79a7f032081baec | |
parent | 07c8612be653093b0f4e3c212edcb51eacdda7e7 (diff) | |
download | zsh-6763a3cc555fcf216e2be15ab3b866ead0138e0f.tar.gz zsh-6763a3cc555fcf216e2be15ab3b866ead0138e0f.tar.xz zsh-6763a3cc555fcf216e2be15ab3b866ead0138e0f.zip |
25231: fix approximation of absolute paths in root directory
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Completion/Unix/Type/_path_files | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 9e0d9cd9f..0c20d1859 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-06-21 Peter Stephenson <p.w.stephenson@ntlworld.com> + + * 25231: Completion/Unix/Type/_path_files: fix approximation + of absolute paths in root directory (/uzr -> /usr, etc.). + 2008-06-19 Peter Stephenson <pws@csr.com> * 25214, tweaked: add warning about exponentitation precedence. diff --git a/Completion/Unix/Type/_path_files b/Completion/Unix/Type/_path_files index 6890379c5..413f69635 100644 --- a/Completion/Unix/Type/_path_files +++ b/Completion/Unix/Type/_path_files @@ -414,7 +414,7 @@ for prepath in "$prepaths[@]"; do fi if (( ! $#tmp1 )); then - tmp2=( ${^tmp2}/$PREFIX$SUFFIX ) + tmp2=( ${^${tmp2:#/}}/$PREFIX$SUFFIX ) elif [[ "$tmp1[1]" = */* ]]; then if [[ -n "$_comp_correct" ]]; then tmp2=( "$tmp1[@]" ) |