delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/10/30/07:46:15

X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Subject: Re: Old favourite: Terminate batch job (Y/N)?
Date: Mon, 30 Oct 2006 12:45:59 -0000
Message-ID: <830404B1D376BA46BC25BE71A3E12873017E5FBD@corvus.tcgp.dundee.ac.uk>
From: "Fergus Daly" <f DOT daly AT chs DOT dundee DOT ac DOT uk>
To: <cygwin AT cygwin DOT com>
Cc: <fergus AT bonhard DOT uklinux DOT net>
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
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id k9UCkAoL001121

>> .. but if your {commandlist 2} contains unmount commands
>> then it would certainly appear in the bash session
>> as though the mount commands had never happened, since
>> they will have been unmounted by the time you get to do
>> anything in bash.

Exactly right. I thought there was somebody standing behind me all this
time. Creepy.

>> If you change it to "start /wait bash" then you should get the
desired
>> behavior of waiting for the bash process to terminate before
continuing
>> in the batch file.

Thank you very much. I'll use this next.

A second solution offered in the archives is

	.. {as before}
	set CYGWIN=tty
	bash
	.. {as before}

and this certainly seems to work, in that (a) the invitation to
"Terminate .." no longer appears; and (b) the preceding {sequence of
mount instructions} survives in the bash process.

But several persons offering this solution also provide gloomy but not
very specific warnings that it is or can be dangerous, causing other
behaviours to be altered. Again, can anybody comment on this as a
solution? (It is now months and in some cases years since the original
postings.)

Thank you.

Fergus

--
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