mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-06-27 15:43:18 +02:00
11 lines
315 B
Bash
11 lines
315 B
Bash
#!./testshell
|
|
|
|
echo 'Test 2: You should not be able to exit `cat` with SIGINT.'
|
|
echo ' SIGQUIT should abort `cat` (with coredump) while'
|
|
echo ' the shell should continue and call `cat` again.'
|
|
echo ' SIGTERM should exit the whole script.'
|
|
|
|
set -x
|
|
trap '' 2
|
|
while : ; do cat ; echo -n $? ; done
|