delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/07/28/17:26:11

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <3981FAD9.85729574@veritas.com>
Date: Fri, 28 Jul 2000 14:27:53 -0700
From: Bob McGowan <rmcgowan AT veritas DOT com>
Organization: VERITAS Software
X-Mailer: Mozilla 4.73 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Matthew Smith <matts AT bluesguitar DOT org>
CC: Cygwin <cygwin AT sourceware DOT cygnus DOT com>
Subject: Re: Upon further inspection...
References: <004001bff8d1$e8083ad0$3c5350d8 AT guinness>

This is now off-topic for the list, I thing.

Yes, there are several things that have changed between NT 4 and Windows
2000.  Do "help cmd" and read the sections about "command extensions". 
Extensions are 'on' by default in 2000, 'off' in 4.0, plus the number
of  them differ.

You can still do this, but you will have to explicitly start the cmd.exe
with extensions OFF:

   cmd /E:off

or set up to run the file using backslashes.

Bob

Matthew Smith wrote:
> 
> Upon further inspection, I've learned it's not a sh problem at all.  What
> was happening was that the shell script in question was creating a .bat file
> on the fly, and then execing the .bat file.  It seems that Microsoft in
> their infinite wisdom has changed the behavior of cmd.exe between Windows
> NT4 and Windows 2k.  Under Windows 2k, try creating a simple .bat file that
> echos something to the screen.  Then try to run the batch file by saying
> ./file.bat.  It will spit this out to the screen:
> 
> '.' is not recognized as an internal or external command,
> operable program or batch file.
> 
> Which was the problem I was having.  Bummer.
> 
> cheers,
> -Matt Smith
> 
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

-- 
Bob McGowan
Staff Software Quality Engineer
VERITAS Software
rmcgowan AT veritas DOT com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019