about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Type/_path_files2
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[@]" )