delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/08/04/07:55:20

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Message-Id: <200408041155.i74Btpu16830@bug.gfm.net>
To: Cygwin List <cygwin AT cygwin DOT com>
X-URL: http://www.gfm.net:443/~march
Subject: Re: Interrupts, bash and .cmd scripts
In-reply-to: Your message of Tue, 03 Aug 2004 22:25:16 -0400.<6.1.0.6.0.20040803221317.033a5b60@pop.prospeed.net>
Mime-Version: 1.0
Date: Wed, 04 Aug 2004 07:55:51 -0400
From: "Gregory F. March" <march AT gfm DOT net>

On Aug 3, 2004, Larry Hall <lh-no-personal-replies-please AT cygwin DOT com>  wrote:

 |Does it happen from rxvt without the X-server running?

Yes, it does.

 |Starting here is usually the best thing to do:
 |
 |>Problem reports:       http://cygwin.com/problems.html

Been there... :-)

 |Following up on some of that advice, did you try googling?  I found
 |this by looking for "Control-C" and "rxvt" in 2004.
 |
 |<http://www.cygwin.com/ml/cygwin/2004-02/msg01422.html>
 |
 |Looks relevant to me, no?

No, unfortunately not. The issue is not that ^C doesn't do anything, it is 
that it does interrupt the script, but it appears to leave what ever the 
script ran in the background.  Doing some experimenting, I found the 
following to demonstrate the problem:

foo.sh:

	#!/bin/bash

	/cygwin/c/Program\ Files/mozilla.org/Mozilla/mozilla/exe

foo.cmd:

	"c:\Program Files\mozilla.org\Mozilla\mozilla.exe"

When running foo.sh, a ^C will terminate mozilla and return the command 
prompt.  When running foo.cmd, ^C will return the command prompt, but leave 
mozilla running.

This is easy to deal with in terms of mozilla - I can just go exit mozilla. 
But with things like WLS, killing the java processes is a PITA.

Any ideas?  Thanks....

/greg




--
Gregory F. March    |    http://www.gfm.net:443/~march    |    AIM:GfmNet



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

- Raw text -


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