fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
b531cc8b4
master
1#RUN: %fish -C "set helper %fish_test_helper" %s 2# This hangs on OpenBSD 3#REQUIRES: test "$(uname)" != OpenBSD 4#REQUIRES: command -v %fish_test_helper 5 6# Command subs run in same pgroup as fish, even if job control is 'all'. 7# Verify that they get the same pgroup across runs (presumably fish's). 8status job-control full 9set g1( $helper print_pgrp) 10for iin ( seq 10 ) 11if test $g1 -ne ( $helper print_pgrp) 12echo "Unexpected pgroup" 13end 14end 15status job-control interactive 16 17echo "Finished testing pgroups" 18#CHECK: Finished testing pgroups 19 20 21# Ensure that if child processes SIGINT, we exit our loops 22# Test for #3780 23 24echo About to sigint 25#CHECK: About to sigint 26 27while true 28sh -c'echo Here we go; sleep .25; kill -s INT $$' 29end 30#CHECK: Here we go 31 32echo I should not be printed because of the SIGINT.