mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-06 00:41:15 -03:00
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
This commit is contained 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user