about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2011-12-13 19:33:15 +0000
committerMikael Magnusson <mikachu@gmail.com>2011-12-13 19:33:15 +0000
commitfd1c2364f42993c327f10b8a1b3ce205de06e501 (patch)
treea4f182b151b7154d9942a25f108f7eb55b292049
parent02dc5c681e1661b00761a6a98df9a85cfa82bae0 (diff)
downloadzsh-fd1c2364f42993c327f10b8a1b3ce205de06e501.tar.gz
zsh-fd1c2364f42993c327f10b8a1b3ce205de06e501.tar.xz
zsh-fd1c2364f42993c327f10b8a1b3ce205de06e501.zip
30019: _tar: fix parsing of argument to -C.
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_tar2
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index d3403a23b..d434032fe 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,9 @@
 
 	* 29998: Completion/Unix/Command/_git: fix a typo (--rerbose).
 
+	* 30019: Completion/Unix/Command/_tar: fix parsing of argument
+	to -C.
+
 2011-12-13  Barton E. Schaefer  <schaefer@zsh.org>
 
 	* 30020: Functions/Prompts/promptinit: prevent prompt_opts and
@@ -15750,5 +15753,5 @@
 
 *****************************************************
 * This is used by the shell to define $ZSH_PATCHLEVEL
-* $Revision: 1.5539 $
+* $Revision: 1.5540 $
 *****************************************************
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