Files
bash/tests/cracauer-testsuite/test06.sh
T
2011-12-03 12:52:47 -05:00

11 lines
317 B
Bash

#!./testshell
echo 'Test 2: You should not be able to exit `cat` with SIGQUIT.'
echo ' SIGINT should exit `cat` (without coredump) while'
echo ' the shell should continue and call `cat` again.'
echo ' SIGTERM should exit the whole script.'
set -x
trap '' 3
while : ; do cat ; echo -n $? ; done