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

10 lines
245 B
Bash

#!./testshell
echo 'Test 13 (variant of Test 1):'
echo 'On SIGINT, cat should exit (and be restarted by the shell loop)'
echo 'and the Text "I am a trap" should be printed'
set -x
trap 'echo I am a trap' 2
while : ; do cat ; echo -n $? ; done