From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1747 invoked by alias); 17 Apr 2012 14:35:00 -0000 Received: (qmail 1634 invoked by uid 22791); 17 Apr 2012 14:34:57 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mho-01-ewr.mailhop.org (HELO mho-01-ewr.mailhop.org) (204.13.248.71) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 17 Apr 2012 14:34:25 +0000 Received: from pool-98-110-186-28.bstnma.fios.verizon.net ([98.110.186.28] helo=cgf.cx) by mho-01-ewr.mailhop.org with esmtpa (Exim 4.72) (envelope-from ) id 1SK9U8-000EIU-KV for cygwin@cygwin.com; Tue, 17 Apr 2012 14:34:24 +0000 Received: from localhost (ednor.casa.cgf.cx [192.168.187.5]) by cgf.cx (Postfix) with ESMTP id 0491C13C076 for ; Tue, 17 Apr 2012 10:34:24 -0400 (EDT) X-Mail-Handler: MailHop Outbound by DynDNS X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1918afcm8kSKXJj85HcsRjW Date: Tue, 17 Apr 2012 14:35:00 -0000 From: Christopher Faylor To: cygwin@cygwin.com Subject: Re: 1.7.11: Ctrl-C does not work in bash shell (Win7) Message-ID: <20120417143424.GD15491@ednor.casa.cgf.cx> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <0105D5C1E0353146B1B222348B0411A20A6536CB73@NIHMLBX02.nih.gov> <4F8D1867.7000604@tlinx.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4F8D1867.7000604@tlinx.org> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2012-04/txt/msg00365.txt.bz2 On Tue, Apr 17, 2012 at 12:14:47AM -0700, Linda Walsh wrote: >Buchbinder, Barry (NIH/NIAID) [E] wrote: > >> Spackmann, Richard M. sent the following at Tuesday, April 03, 2012 2:18 PM >>> When I open up a cygwin command line bash shell and I notice now that >>> Ctrl-C does not exit out from the current command prompt to start a new >>> one. >>> >>> Ctrl-C will however exit a running process. >>> >>> Is this to be the behavior from now on, or is a >>> reoccurrence of the possible bug as reported in >>> http://cygwin.com/ml/cygwin/2012-03/msg00102.html. >>> >>> If so, when is the next cygwin bug release due out? >>> >>> I am running Windows 7 and just upgraded to 1.7.11 - attached is the >>> output of cygcheck. >> >> I think that it may be bash, not cygwin. Bash does not exit with ^C, >> but will with ^D. >> >> See SIGNALS in man bash. (A feature, not a bug.) > >---- > It's not that it should exit -- but it used to abort the input >of the current line, and give you a new one -- > > I managed to find a combination of stty settings that worked >around it with a side effect of killing any window I press control-C >in if a program is 'stuck'... i'm running bash inside of 'console.exe', >and if I have a program that hangs, pressing control-c kills the prog, >bash and the window -- well -- at least it kills it -- not an idea >change. > >I stuck "stty echoctl ignbrk" in my .bashrc, to get the current behavior >which results in bash reverting to it's normal behavior (controlC aborts >current line or kills a shell script waiting for input...), with >the side effect noted above... > >Hopefully it will get fixed... I don't know what time warp you just stepped out of which required you to start responding to old messages but we're actually on Cygwin 1.7.13 now. CTRL-C works as expected both in a console window and under mintty. If there is actually still a problem which is not related to some strange form of extreme jet lag then it would be nice if someone recounted the exact steps to duplicate it. There is no need to offer strange workarounds or hopeful thoughts. As always, we need details. By details I mean a non-editorialized, adjective-lite series of commands showing the problem. What I did was type "bash" in a command window in Windows 7 64. Then I typed CTRL-C. I also typed asdef^C and got a new prompt. I did the same thing under mintty with the same result. -- 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