about summary refs log tree commit diff
path: root/Test/01grammar.ztst
diff options
context:
space:
mode:
Diffstat (limited to 'Test/01grammar.ztst')
-rw-r--r--Test/01grammar.ztst9
1 files changed, 7 insertions, 2 deletions
diff --git a/Test/01grammar.ztst b/Test/01grammar.ztst
index 361512e98..0ef1a1756 100644
--- a/Test/01grammar.ztst
+++ b/Test/01grammar.ztst
@@ -50,9 +50,8 @@
 #
 # Tests for `Precommand Modifiers'
 #
-  - sh -c 'echo $0'
+  - $ZTST_testdir/../Src/zsh -fc "[[ \$0 = \"-$ZTST_testdir/../Src/zsh\" ]]"
 0:`-' precommand modifier
->-sh
 
   echo f*
   noglob echo f*
@@ -107,6 +106,12 @@
 0:`if ...' (iii)
 >false
 
+  if true;
+    :
+  fi
+1d:`if ...' (iv)
+?ZTST_execchunk:-1: parse error near `fi'
+
   for name in word to term; do
     print $name
   done