about summary refs log tree commit diff
path: root/Test/A01grammar.ztst
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2005-04-01 10:16:59 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2005-04-01 10:16:59 +0000
commitb51472dd5fda1d4a0e8273d675da03dcbb37c8d6 (patch)
tree269bed9e207c6d94e5d5496dd1ba1c0ab8da0100 /Test/A01grammar.ztst
parent835a5ad8b506af216a52a606243c8f73654f1a83 (diff)
downloadzsh-b51472dd5fda1d4a0e8273d675da03dcbb37c8d6.tar.gz
zsh-b51472dd5fda1d4a0e8273d675da03dcbb37c8d6.tar.xz
zsh-b51472dd5fda1d4a0e8273d675da03dcbb37c8d6.zip
21078: parse errors didn't cause non-zero exit status
Diffstat (limited to 'Test/A01grammar.ztst')
-rw-r--r--Test/A01grammar.ztst9
1 files changed, 9 insertions, 0 deletions
diff --git a/Test/A01grammar.ztst b/Test/A01grammar.ztst
index a856b8ccc..81a963b05 100644
--- a/Test/A01grammar.ztst
+++ b/Test/A01grammar.ztst
@@ -7,6 +7,7 @@
   mkdir basic.tmp && cd basic.tmp
 
   touch foo bar
+  echo "'" >unmatched_quote.txt
 
 %test
 #
@@ -439,3 +440,11 @@
   done || print no
 0:Handling of &&'s and ||'s with a for loop in between
 >no
+
+  $ZTST_testdir/../Src/zsh -f unmatched_quote.txt
+1:Parse error with file causes non-zero exit status
+?unmatched_quote.txt:2: unmatched '
+
+  $ZTST_testdir/../Src/zsh -f <unmatched_quote.txt
+1:Parse error on standard input causes non-zero exit status
+?zsh: unmatched '