mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-08 19:31:14 -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
|
||||
|
||||
|
||||
@@ -36,3 +36,4 @@ abc
|
||||
Catch your breath
|
||||
abc!def
|
||||
abc!1def
|
||||
1
|
||||
|
||||
Reference in New Issue
Block a user