mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-30 11:21:15 -03:00
Tests and fix to allow return to work correctly within if statements. Closes #1297.
This commit is contained in:
@@ -121,3 +121,12 @@ echo -e Catch your breath
|
||||
|
||||
echo -e 'abc\x21def'
|
||||
echo -e 'abc\x211def'
|
||||
|
||||
function always_fails
|
||||
if true
|
||||
return 1
|
||||
end
|
||||
end
|
||||
|
||||
always_fails ; echo $status
|
||||
|
||||
|
||||
Reference in New Issue
Block a user