summary refs log tree commit diff
path: root/Completion/Unix/Command/_tar
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Unix/Command/_tar')
-rw-r--r--Completion/Unix/Command/_tar2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_tar b/Completion/Unix/Command/_tar
index 4f3247291..ce5852453 100644
--- a/Completion/Unix/Command/_tar
+++ b/Completion/Unix/Command/_tar
@@ -177,7 +177,7 @@ else
     fi
   fi
   if (( index )); then
-    index="$~words[index+1]"
+    index=${~${(Q)words[index+1]}}
     [[ $index = (.|..|)/* ]] || index=~+/$index
     _files -W $index
   else