mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-12-13 09:24:03 +08:00
8bf8b10f68
See the changelog additions for user-visible changes. Since we enable/disable terminal protocols whenever we pass terminal ownership, tests can no longer run in parallel on the same terminal. For the same reason, readline shortcuts in the gdb REPL will not work anymore. As a remedy, use gdbserver, or lobby for CSI u support in libreadline. Add sleep to some tests, otherwise they fall (both in CI and locally). There are two weird failures on FreeBSD remaining, disable them for now https://github.com/fish-shell/fish-shell/pull/10359/checks?check_run_id=23330096362 Design and implementation borrows heavily from Kakoune. In future, we should try to implement more of the kitty progressive enhancements. Closes #10359
31 lines
723 B
Fish
31 lines
723 B
Fish
#RUN: %fish -C "set -g helper %fish_test_helper; set -g fish %fish" %s | %filter-ctrlseqs
|
|
|
|
# Check that nohup is propagated.
|
|
set output_path (mktemp)
|
|
nohup $fish -c "$helper print_ignored_signals" 2>&1 > $output_path
|
|
cat $output_path
|
|
# CHECK: Hangup: 1
|
|
rm $output_path
|
|
|
|
# Block some signals if job control is off (#6828).
|
|
status job-control none
|
|
for fish_use_posix_spawn in 0 1
|
|
$helper print_blocked_signals &
|
|
wait
|
|
end
|
|
# CHECKERR: Interrupt: 2
|
|
# CHECKERR: Quit: 3
|
|
# CHECKERR: Interrupt: 2
|
|
# CHECKERR: Quit: 3
|
|
|
|
# Ensure we can break from a while loop.
|
|
|
|
echo About to sigint
|
|
$helper sigint_parent &
|
|
while true
|
|
end
|
|
echo I should not be printed because I got sigint
|
|
|
|
#CHECK: About to sigint
|
|
#CHECKERR: Sent SIGINT to {{\d*}}
|