about summary refs log tree commit diff
path: root/Completion/Commands
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-05-23 08:54:30 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-05-23 08:54:30 +0000
commitee681a32ad5a2e69301494be45556a4020fe1384 (patch)
treefbb0c6fa5f02dd7a7525e2ab8a83c9c64b8c8b17 /Completion/Commands
parentcb50583b184fd8aa456fcadd0c25e0c43f704a72 (diff)
downloadzsh-ee681a32ad5a2e69301494be45556a4020fe1384.tar.gz
zsh-ee681a32ad5a2e69301494be45556a4020fe1384.tar.xz
zsh-ee681a32ad5a2e69301494be45556a4020fe1384.zip
use `set -A' instead of `eval' in more places (11525)
Diffstat (limited to 'Completion/Commands')
-rw-r--r--Completion/Commands/_complete_help2
-rw-r--r--Completion/Commands/_next_tags4
2 files changed, 3 insertions, 3 deletions
diff --git a/Completion/Commands/_complete_help b/Completion/Commands/_complete_help
index 94ca4abe0..36c41607b 100644
--- a/Completion/Commands/_complete_help
+++ b/Completion/Commands/_complete_help
@@ -32,7 +32,7 @@ _complete_help() {
     # No need to call the completers more than once with different match specs.
 
     if [[ "$3" = matcher-list ]]; then
-      eval "${4}=( '' )"
+      set -A "$4" ''
     else
       builtin zstyle "$@"
     fi
diff --git a/Completion/Commands/_next_tags b/Completion/Commands/_next_tags
index a308b307c..eb20494d7 100644
--- a/Completion/Commands/_next_tags
+++ b/Completion/Commands/_next_tags
@@ -62,10 +62,10 @@ _next_tags() {
         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