From 6763a3cc555fcf216e2be15ab3b866ead0138e0f Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Sat, 21 Jun 2008 21:36:00 +0000 Subject: 25231: fix approximation of absolute paths in root directory --- Completion/Unix/Type/_path_files | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Completion') 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[@]" ) -- cgit 1.4.1