bug-bash  

Re: echo ^C

Greg Wooledge
Tue, 23 Feb 2010 13:32:23 -0800

On Tue, Feb 23, 2010 at 10:23:38PM +0100, Freddy Vulto wrote:
> 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?

Lots of people in #bash on IRC want the exact opposite -- for bash to
*not* print ^C when receiving an intr key in interactive mode, as it
used to do before bash 4.  Might be nice to make it a setting.