delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com> |
List-Archive: | <http://sourceware.cygnus.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sourceware DOT cygnus DOT com> |
List-Help: | <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs> |
Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
Message-ID: | <20000426131524.18539.qmail@web110.yahoomail.com> |
Date: | Wed, 26 Apr 2000 06:15:24 -0700 (PDT) |
From: | Earnie Boyd <earnie_boyd AT yahoo DOT com> |
Reply-To: | earnie_boyd AT yahoo DOT com |
Subject: | RE: Cygwin 1.0: Error when launching MSDOS bat file from bash on Windows 2000 |
To: | "Berche, Guillaume" <Guillaume DOT Berche AT mkms DOT xerox DOT com>, |
"'cygwin AT sourceware DOT cygnus DOT com'" <cygwin AT sourceware DOT cygnus DOT com> | |
MIME-Version: | 1.0 |
--- "Berche, Guillaume" <Guillaume DOT Berche AT mkms DOT xerox DOT com> wrote: > Chris, > > > And, if cygwin invokes the MSDOS shell using this path: > > > > command.com /foo/bar/blaz/blat.bat > > > > what kind of behavior would you predict? > > Well when experimenting it seems that it does not work because it launches a > new interactive MSDOS command shell instead of interpreting the bat file. > However the command > cmd.exe /C /foo/bar/blaz/blat.bat seems to work fine with both relative and > absolute paths on NT and Windows 2000. > WOW!! I just tried starting bash for MSDOS CMD.EXE using forward slashes in the path and it worked!! :0 Too bad I can't cd to the directory using forward slashes. Chris, the problem isn't that foo.bat won't execute under Cygwin bash, it will. The problem is that it won't execute with relative paths. Absolute paths work great. I was able to emulate Guillaume's problem with his example. Example: ---foo.bat--- REM This will execute under the MSDOS shell. PAUSE REM End of foo.bat ---end foo.bat--- /path/to/foo.bat; #works path/to/foo.bat; #doesn't work ./path/to/foo.bat; #works Cheers, ===== --- Earnie Boyd: <mailto:earnie_boyd AT yahoo DOT com> __Cygwin: POSIX on Windows__ Cygwin Newbies: <http://www.freeyellow.com/members5/gw32/index.html> __Minimalist GNU for Windows__ Mingw32 List: <http://www.egroups.com/group/mingw32/> Mingw Home: <http://www.mingw.org/> __________________________________________________ Do You Yahoo!? Send online invitations with Yahoo! Invites. http://invites.yahoo.com -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |