summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2000-05-22 18:15:53 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2000-05-22 18:15:53 +0000
commitde2c2a89c6341adeb4e033ec8877d67eb0c2110c (patch)
treeee9154518b95ccc28ac3037133023bfdc87756fc /Completion
parentbdfda774b7d700565862b23ffd4544f40ea9a4db (diff)
downloadzsh-de2c2a89c6341adeb4e033ec8877d67eb0c2110c.tar.gz
zsh-de2c2a89c6341adeb4e033ec8877d67eb0c2110c.tar.xz
zsh-de2c2a89c6341adeb4e033ec8877d67eb0c2110c.zip
Don't lose empty arguments (11517)
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Core/_next_label4
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/Core/_next_label b/Completion/Core/_next_label
index d2d698171..620e67421 100644
--- a/Completion/Core/_next_label
+++ b/Completion/Core/_next_label
@@ -13,10 +13,10 @@ if comptags -A "$1" curtag spec; then
     zformat -f descr "${curtag#*:}" "d:$3"
     _description "$gopt" "${curtag%:*}" "$2" "$descr"
     curtag="${curtag%:*}"
-    eval "${2}=( \${(P)2} \$argv[4,-1] )"
+    set -A $2 "${(P@)2}" "${argv[4,-1][@]}"
   else
     _description "$gopt" "$curtag" "$2" "$3"
-    eval "${2}=( \$argv[4,-1] \${(P)2} )"
+    set -A $2 "${argv[4,-1][@]}" "${(P@)2}"
   fi
 
   return 0