Introduce tests for #1892

This commit is contained in:
ridiculousfish 2015-01-17 15:22:37 -08:00
parent 9e3f912747
commit 7164769d33
2 changed files with 7 additions and 0 deletions

View file

@ -83,6 +83,11 @@ else
end
echo Test 4 $sta
# Ensure eval doesn't unnecessarily mess with the exit status
function empty_func ; end
false ; eval empty_func ; echo $status
true ; eval empty_func ; echo $status
function test_builtin_status
return 1
end

View file

@ -17,6 +17,8 @@ Test 2 pass
Test pass
Test 3 pass
Test 4 pass
1
0
Test 5 pass
Test redirections
errput