delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/12/15/18:46:41

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
Date: Wed, 15 Dec 2004 18:45:34 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Donal Murtagh <domurtag AT yahoo DOT co DOT uk>
cc: cygwin AT cygwin DOT com
Subject: Re: running .bat files from bash
In-Reply-To: <20041215201009.16917.qmail@web26107.mail.ukl.yahoo.com>
Message-ID: <Pine.GSO.4.61.0412151833490.2298@slinky.cs.nyu.edu>
References: <20041215201009 DOT 16917 DOT qmail AT web26107 DOT mail DOT ukl DOT yahoo DOT com>
MIME-Version: 1.0

On Wed, 15 Dec 2004, Donal Murtagh wrote:

> Hi,
>
> 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.  I can't reproduce this on my installation...
You could run javac with the -verbose flag (or even -J-verbose) to show
where javac is writing the files...
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

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