2
0
Fork 0
mirror of https://github.com/fish-shell/fish-shell synced 2025-02-16 05:58:51 +00:00
fish-shell/tests/checks/empty.fish

29 lines
298 B
Fish
Raw Normal View History

# RUN: %fish %s | %filter-ctrlseqs
# See issue 5692
function empty
end
# functions should not preserve $status
false
empty
echo $status
# CHECK: 0
true
empty
echo $status
# CHECK: 0
# blocks should preserve $status
false
begin
end
echo $status
# CHECK: 1
true
begin
end
echo $status
# CHECK: 0