delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/04/17/10:35:12

X-Recipient: archive-cygwin AT delorie DOT com
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
X-Mail-Handler: MailHop Outbound by DynDNS
X-Report-Abuse-To: abuse AT dyndns DOT com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information)
X-MHO-User: U2FsdGVkX1918afcm8kSKXJj85HcsRjW
Date: Tue, 17 Apr 2012 10:34:24 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT 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 AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <0105D5C1E0353146B1B222348B0411A20A6536CB73 AT NIHMLBX02 DOT nih DOT gov> <4F8D1867 DOT 7000604 AT tlinx DOT org>
MIME-Version: 1.0
In-Reply-To: <4F8D1867.7000604@tlinx.org>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019