bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: echo ^C


From: Chet Ramey
Subject: Re: echo ^C
Date: Tue, 23 Feb 2010 17:23:00 -0500

> 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    address@hidden    http://cnswww.cns.cwru.edu/~chet/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]