This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

bug developed in bash in recent release...ignores control-c if typed during input.



Normally if I type control-c, it aborts the line I am on, and gives me a new prompt.


After an upgrade a few weeks ago (and retried today with a fresh re-inst of bash), the control-c has been getting ignored!

... have to remember line clear... the control-c doesn't echo -- just ignored.

If I look at stty, the setting there says
> stty
speed 38400 baud; line = 0;
kill = ^X; susp = ^Y;
-imaxbel
-echoe -echok -echoctl -echoke
/Users/law> stty -a
speed 38400 baud; rows 60; columns 80; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^X; eof = ^D; eol = <undef>;
eol2 = <undef>; swtch = ^Z; start = ^Q; stop = ^S; susp = ^Y; rprnt = ^R;
werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff
-iuclc -ixany -imaxbel
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo -echoe -echok -echonl -noflsh -tostop -echoctl -echoke
---
with relevant parts being the -ignbrk (don't ignore break), intr=^C -- control-c still set as interrupt char, though maybe it wasn't on before, but I tried it..
'echoctl'...
(it's on on my linux box)... made no difference...


still ignores controls-c

BUT -- if I do a stty ignbrk -- then, it works the way it used to.

So is the fact that the settings of 'ignore break' on stty a new feature,
fodder for the 'incident queue', or what?





> bash --version
bash --version
GNU bash, version 4.1.10(4)-release (i686-pc-cygwin)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
> uname -a
uname -a
CYGWIN_NT-6.1-WOW64 Athenae 1.7.11(0.260/5/3) 2012-02-24 14:05 i686 Cygwin

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]