www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/04/11/13:45:28

Date: Tue, 11 Apr 2000 13:55:37 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Juan Manuel Guerrero <ST001906 AT HRZ1 DOT HRZ DOT TU-Darmstadt DOT De>
cc: djgpp-workers AT delorie DOT com
Subject: Re: suggestion for config.bat (texinfo-4.0)
In-Reply-To: <9D8CF256E0@HRZ1.hrz.tu-darmstadt.de>
Message-ID: <Pine.SUN.3.91.1000411135214.4929U-100000@is>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

Thanks for your suggestions.

On Tue, 11 Apr 2000, Juan Manuel Guerrero wrote:

> first:
> This two lines are from config.bat from texinfo-4.0:
> 
>    set HOSTNAME=%HOSTNAME%, %OS%
>    if not "%HOSTNAME%" == "%HOSTNAME%, %OS%" goto SmallEnv
> 
> Suppose that HOSTNAME has been set to FOO and OS has been set to MS-DOS.
> In line #1 HOSTNAME will be set to "FOO, MS-DOS".
> The test in line #2 will ALWAYS fail because:

Thanks for pointing this out.

> This concern only people using 4DOS v6.X with MSDOS v 6.X and probably
> other SFN environments. 4DOS does NOT truncute long file names to short
> file names when it runs its internal commands like ren, copy, del, etc.
[snip]
> ! if not exist install-?? if exist install-??.sh ren install-??.sh install-sh

Does this work on Windows 9X?

In general, this is too dangerous: what if some day there will be another 
install-?? file?

If there's no other way of fixing this problem, I'd rather add some magic 
to the batch file to invoke COMMAND.COM explicitly.

- Raw text -


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