summaryrefslogtreecommitdiff
path: root/Test
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2016-01-21 16:30:21 +0000
committerPeter Stephenson <pws@zsh.org>2016-01-21 16:30:21 +0000
commit1aec003155e8ccd8e0e3b9a6bd8c9fdb141d5c81 (patch)
treebe6e56b6ed2da83c5efdbf5df7165aca4bbc7be5 /Test
parent1c41f98aabc20fce8a1eb8fd7d1b6baabfa1dea5 (diff)
downloadzsh-1aec003155e8ccd8e0e3b9a6bd8c9fdb141d5c81.tar.gz
zsh-1aec003155e8ccd8e0e3b9a6bd8c9fdb141d5c81.zip
37722: test builtin should return status 2 on syntax error
Diffstat (limited to 'Test')
-rw-r--r--Test/C02cond.ztst12
1 files changed, 6 insertions, 6 deletions
diff --git a/Test/C02cond.ztst b/Test/C02cond.ztst
index 0b4608a21..88cad0d64 100644
--- a/Test/C02cond.ztst
+++ b/Test/C02cond.ztst
@@ -223,27 +223,27 @@ F:Failures in these cases do not indicate a problem in the shell.
0:substitution in `[' builtin
[ -n foo scrimble ]
-1:argument checking for [ builtin
+2:argument checking for [ builtin
?(eval):[:1: too many arguments
test -n foo scramble
-1:argument checking for test builtin
+2:argument checking for test builtin
?(eval):test:1: too many arguments
[ -n foo scrimble scromble ]
-1:argument checking for [ builtin
+2:argument checking for [ builtin
?(eval):[:1: too many arguments
test -n foo scramble scrumble
-1:argument checking for test builtin
+2:argument checking for test builtin
?(eval):test:1: too many arguments
[ -n foo -a -n bar scrimble ]
-1:argument checking for [ builtin
+2:argument checking for [ builtin
?(eval):[:1: too many arguments
test -n foo -a -z "" scramble
-1:argument checking for test builtin
+2:argument checking for test builtin
?(eval):test:1: too many arguments
fn() {