Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
From: "Dave Korn" <dave.korn@artimi.com>
To: <cygwin@cygwin.com>
Subject: RE: running .bat files from bash
Date: Thu, 16 Dec 2004 10:19:53 -0000
MIME-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
In-Reply-To: <20041215201009.16917.qmail@web26107.mail.ukl.yahoo.com>
Message-ID: <NUTMEG4maEqxGGmNN7900000795@NUTMEG.CAM.ARTIMI.COM>
X-OriginalArrivalTime: 16 Dec 2004 10:19:53.0859 (UTC) FILETIME=[C8CAFD30:01C4E358]

> -----Original Message-----
> From: cygwin-owner On Behalf Of Donal Murtagh
> Sent: 15 December 2004 20:10

> I've noticed that if I want to run a .bat file in bash I have 
> to cd to the
> directory it's in first in order for it to run properly
> 
> For example, if I want to run c:\foo\bar.bat I have to use:
> 
> cd /cygdrive/c/foo
> bar.bat
> 
> if I try
> 
> /cygdrive/c/foo/bar.bat
> 
> it doesn't work properly. It seems that if I attempt the 
> latter, the .bat file
> is launched, but doesn't work properly. The particular .bat 
> file I'm running
> compiles a Java source tree, and when I try to launch it via
> /cygdrive/c/foo/bar.bat, the messages sent to standard output 
> suggest it's
> working fine, but none of the .class files are created.
> 
> Has anyone else come across this?

  Nope, but I have an experiment to suggest: what happens if you start up a DOS
shell, and try running the batch file from a different directory to the one
where it lives under DOS?  If it still goes wrong, your batch file (or perhaps
some makefile it invokes) has a bug; if it works, there's something cyg-weird
going on.

    cheers, 
      DaveK
-- 
Can't think of a witty .sigline today....


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

