mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-29 14:23:09 +00:00
1e858eae35
This demonstrates that we only write control sequences when interactive.
28 lines
279 B
Fish
28 lines
279 B
Fish
# RUN: %fish %s
|
|
|
|
# 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
|