fish-shell/tests/checks/self-signal-usr1.fish
Johannes Altmanninger 1e858eae35 tests: filter control sequences only when interactive
This demonstrates that we only write control sequences when interactive.
2024-04-12 12:28:22 +02:00

17 lines
200 B
Fish

#RUN: %fish %s
# See #6397
function f --on-signal USR1
begin
echo a
echo b
end | while read -l line
echo $line
end
end
kill -USR1 $fish_pid
#CHECK: a
#CHECK: b