This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: "Start" in cygwin.bat


"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@acedsl.com] 
Sent: Wednesday, September 12, 2001 2:38 PM
To: cygwin@cygwin.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]