www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2002/05/27/10:06:07

Message-ID: <001101c2057f$e21a8710$0102a8c0@acceleron>
From: "Andrew Cottrell" <acottrel AT ihug DOT com DOT au>
To: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Cc: <djgpp-workers AT delorie DOT com>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1020527135048 DOT 9356A-100000 AT is>
Subject: Re: emacs under w2k
Date: Mon, 27 May 2002 23:09:57 +1000
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Reply-To: djgpp-workers AT delorie DOT com

> > > > The testing shows that the command interpreter cmd.exe works fine,
but
> > the
> > > > other command interpreter command.com does not work correctly.
> > >
> > > I'm not sure: all I need is that if the file dj204\djgpp.env exists
that
> > > both cmd.exe and command.com will invoke "@echo here".  Can you
confirm
> > > that this is the case?
> > I tried again and command.com fails even with the quotes so it looks
like
> > cmd.exe (or bash?) should be used.
>
> Sorry, I'm not following: which case of the two I mentioned fails?  And
> how exactly does it fail?

The following two tests fail, they do not echo anything:-
command.com /c if exist \DJ204\djgpp.env @echo here1
command.com /c if exist "\DJ204\djgpp.env" @echo here2

The following two tests pass, they echo here3 and here4. Please note that I
am using cmd.exe as the shell when runnig the tests :-
if exist \dj204\djgpp.env @echo here3
if exist "\dj204\djgpp.env" @echo here4

The output from the batch file is:-
D:\DJ204>command.com /c if exist \DJ204\djgpp.env @echo here1
Bad command or file name

D:\DJ204>command.com /c if exist "\DJ204\djgpp.env" @echo here2

D:\DJ204>if exist \dj204\djgpp.env
here3

D:\DJ204>if exist "\dj204\djgpp.env"
here4
D:\DJ204>



- Raw text -


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