fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
e0916e793
master
1#RUN: fish=%fish helper=%fish_test_helper %fish %s 2#REQUIRES: command -v %fish_test_helper 3 4# Check that nohup is propagated. 5set output_path( mktemp ) 6nohup $fish -c" $helper print_ignored_signals" 2>&1 > $output_path 7cat $output_path 8# CHECK: Hangup: 1 9rm $output_path 10 11# Block some signals if job control is off (#6828). 12status job-control none 13for fish_use_posix_spawnin 0 1 14$helper print_blocked_signals& 15wait 16end 17# CHECKERR: Interrupt: 2 18# CHECKERR: Quit: 3 19# CHECKERR: Interrupt: 2 20# CHECKERR: Quit: 3 21 22# Ensure we can break from a while loop. 23 24echo About to sigint 25$helper sigint_parent& 26while true 27end 28echo I should not be printed because I got sigint 29 30#CHECK: About to sigint 31#CHECKERR: Sent SIGINT to {{\d*}}