On my Linux host, Ctrl+C does not seem to work and I do not know how to proceed to make it work. I am using Ubuntu 10.04 with bash 4.1.5(1), and working in Gnome-terminal.
When I pressed Ctrl+C while this script was running, it did not cause it to quit.
#!/bin/bash
for i in `seq 500`
do
ps -e > /dev/null
echo $i
done
stty -aoutput containintr=^C? How do you run the script? – Stéphane Gimenez Aug 11 '11 at 23:04