delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/09/12/18:23:59

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
x-mimeole: Produced By Microsoft Exchange V6.0.5716.0
content-class: urn:content-classes:message
MIME-Version: 1.0
Subject: RE: "Start" in cygwin.bat
Date: Wed, 12 Sep 2001 15:23:40 -0700
Message-ID: <0FA38CF91938AC4F8FDC4960E389D7630161E139@red-msg-10.redmond.corp.microsoft.com>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: "Start" in cygwin.bat
Thread-Index: AcE70nG+QxgEvnjFQhq8Kbuh4b4gTAABsfOg
From: "Stephan Mueller" <smueller AT microsoft DOT com>
To: "Matthew O. Persico" <persicom AT acedsl DOT com>, <cygwin AT cygwin DOT com>
X-OriginalArrivalTime: 12 Sep 2001 22:23:41.0629 (UTC) FILETIME=[93C68ED0:01C13BD9]
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id SAA24920

"Terminate batch job?" shows up when you press CTRL-C while executing a
batch file.  I strongly suspect you'll see the question iff you happened
to press CTRL-C at some time during your bash session.  Perhaps, only if
you pressed CTRL-C while at a bash prompt (i.e. not within a program
spawned from bash).

The start fixes it because it runs bash completely asynchronously from
the batch file, which will quickly exit, before you've done anything in
bash.

Personally, as others have suggested, I dispense with the batch file
completely; putting the current directory and bash invocation directly
in the shortcut.  Any environment variables I care about get set
persistently in the Control Panel (i.e. registry) to make my cmd and
bash environments just a little more symmetric.

stephan();


-----Original Message-----
From: Matthew O. Persico [mailto:persicom AT acedsl DOT com] 
Sent: Wednesday, September 12, 2001 2:38 PM
To: cygwin AT cygwin DOT com
Subject: Re: "Start" in cygwin.bat


Markus Hoenicka wrote:
> 
> FWIW I run NT4.0 and use a link to cygwin.bat on my
> desktop. cygwin.bat reads:
> 
> @echo off
> d:
> chdir \cygwin\bin
> bash --login -i
> 
> The terminal window bash runs in does have the Cygwin icon. When I 
> logout, there is no "Terminate batch jobs" question. What you're 
> describing apparently is a new M$ feature.

FYI:

I have found that although 

	bash --login -i

does have the Cygwin icon consistently, the 

	"Terminate batch jobs"

question is asked INconsistently. The start /B completely elimintes the
question.

-- 
Matthew O. Persico, New York City

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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