> Within the bash-completion testsuite, we're trying to synchronize in > between test cases using the string "^C", output by bash on receiving a > SIGINT. > This works fine for bash >= 4 (typing ^C is echoed as "^C"), but on > bash-3 typing ^C is echoed as a newline. Is there a setting to make > bash-3 echo "^C" then typing ^C, just like bash-4?
That capability (readline echoing the key that generated a signal if the ECHOCTL bit was set with stty) was not added until bash-4.0. It's a settable variable in bash-4.1, so you may not want to rely on it. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/