From ed5d0535140693dbfa3f0e6d8bf844dfc2d4943b Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 19 Feb 2010 12:45:35 +0000 Subject: 27722: bad error reporting and checking in conditions --- Test/C02cond.ztst | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Test/C02cond.ztst') diff --git a/Test/C02cond.ztst b/Test/C02cond.ztst index a824709d3..2d4204038 100644 --- a/Test/C02cond.ztst +++ b/Test/C02cond.ztst @@ -285,6 +285,14 @@ F:Failures in these cases do not indicate a problem in the shell. 0:MATCH, MBEGIN, MEND, match, mbegin, mend >OK + [[ -fail badly ]] +2:Error message for unknown prefix condition +?(eval):1: unknown condition: -fail + + [[ really -fail badly ]] +2:Error message for unknown infix condition +?(eval):1: unknown condition: -fail + %clean # This works around a bug in rm -f in some versions of Cygwin chmod 644 unmodish -- cgit 1.4.1