about summary refs log tree commit diff
path: root/Test/ztst.zsh
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2001-05-18 18:03:11 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2001-05-18 18:03:11 +0000
commit774e0bf3a78cff139d51c936aa7d30713fa54c92 (patch)
treefe77aea9aa6300e3d79312b3a6cc0db3d48ed9db /Test/ztst.zsh
parentde880a6bbb4ea064dbe5fb0405081c170a12ff5c (diff)
downloadzsh-774e0bf3a78cff139d51c936aa7d30713fa54c92.tar.gz
zsh-774e0bf3a78cff139d51c936aa7d30713fa54c92.tar.xz
zsh-774e0bf3a78cff139d51c936aa7d30713fa54c92.zip
More options tests and a ztst.zsh fix for ksharrays
Diffstat (limited to 'Test/ztst.zsh')
-rwxr-xr-xTest/ztst.zsh5
1 files changed, 3 insertions, 2 deletions
diff --git a/Test/ztst.zsh b/Test/ztst.zsh
index ea9d18a08..4fa7a15a2 100755
--- a/Test/ztst.zsh
+++ b/Test/ztst.zsh
@@ -208,9 +208,10 @@ ZTST_execchunk() {
   options=($ZTST_testopts)
   eval "$ZTST_code"
   ZTST_status=$?
+  # careful... ksh_arrays may be in effect.
+  ZTST_testopts=(${(kv)options[*]})
+  options=(${ZTST_mainopts[*]})
   ZTST_verbose 2 "ZTST_execchunk: status $ZTST_status"
-  ZTST_testopts=(${(kv)options})
-  options=($ZTST_mainopts)
   return $ZTST_status
 }