diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2015-12-19 14:45:45 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2015-12-19 14:49:07 -0800 |
commit | 594b460ba2d8dca59a3bfd282397c5f33aa9da6f (patch) | |
tree | 6ed47cc5b6b1015e8680b7ce8cf1b526cd555a95 /tests | |
parent | 0a6f62358b990e1f1c393ce1eb9ce4f978680866 (diff) |
Allow and/or statements to attach to the if/while header
For example:
if false; or true; echo hello; end
will output 'hello' now.
Fixes #1428
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test8.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test8.in b/tests/test8.in index 22cb3b12..5e918fbe 100644 --- a/tests/test8.in +++ b/tests/test8.in @@ -32,8 +32,8 @@ if false ; end ; echo $status if false ; or true ; echo "success1" ; end if false ; and false ; echo "failure1" ; end while false ; and false ; or true ; echo "success2"; break ; end -while false; or begin ; false; or true; end; echo "success3"; end -if false ; else if false ; and true ; else if false ; and false ; else if false; or true; echo "success 4"; end +while false; or begin ; false; or true; end; echo "success3"; break ; end +if false ; else if false ; and true ; else if false ; and false ; else if false; or true; echo "success4"; end if false ; else if false ; and true ; else if false ; or false ; else if false; echo "failure 4"; end if false ; or true | false ; echo "failure5" ; end |