CTRL-C does not work in Cygwin when using pipes

Warren Young wyml@etr-usa.com
Tue Dec 29 23:52:00 GMT 2015


On Dec 29, 2015, at 3:31 PM, Bill Smith <bsmith@progress.com> wrote:
> 
> I'm trying to do this with the standard shell, bash.  We have tried using mintty or the xterm version but there were other issues.

Michael is correct: the shell and the terminal are two separate programs.  Your problem isn’t with bash, it’s with the Windows native console.

If the Windows native console were the best way to run an interactive Cygwin command shell, Cygwin wouldn’t default to mintty these days.

That said, Cygwin *used* to run Bash in the Windows Console by default, and I don’t recall Ctrl-C failing in that case.  So, I guess something changed in the cygwin1.dll terminal I/O handling which breaks Ctrl-C handling while a pipe is running.

While waiting for a fix, maybe a more productive way to solve your problem is to address these “issues” you’re having with mintty.  There’s something to be said for running with the standard environment.
--
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



More information about the Cygwin mailing list