delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/11/09:30:23

From: pjfarley AT banet DOT net (Peter J. Farley III)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Why does make fail to run path-qualified commands?
Date: Fri, 11 Sep 1998 13:27:59 GMT
Message-ID: <35f9245d.989851@news2.banet.net>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 980910213835 DOT 10176L-100000 AT is>
NNTP-Posting-Host: 166.72.219.215
Organization: IBM.NET
Lines: 117
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

[CC of original email reply; newsgroup access failed last night, my
apologies for duplicate posting to mail archive]
Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> wrote:
>On Mon, 7 Sep 1998, Peter J. Farley III wrote:
>> Environment: Win95 DOS box (4.00.950a), LFN=y, make 3.76.1, bash
>> 1.14.7, DJDIR is set to "h:/djgpp"
>          ^^^^^^^^^^^^^^^^^^^^^^^^^
>Did you indeed set DJDIR instead of DJGPP?

Both, actually.  See my complete bash and DOS "set" environment copied
at the end of this message.  DJGPP is set to "h:\djgpp\DJGPP.ENV".

>Also, is it possible that you have FNCASE=y set in the environment or in 
>DJGPP.ENV?  Does "/bin/rm -f" work?

No, there is no fncase variable set at all, and none in DJGPP.ENV.
Yes, "/bin/rm -f" works, as the sample make file I posted shows.

>> +SHELL=%DJDIR%/bin/sh.exe
>> +MAKESHELL=%DJDIR%/bin/sh.exe
>
>I don't think these variables are relevant to this, since the command you 
>are invoking doesn't require a shell; Make will try to invoke /BIN/rm 
>directly (via `spawnXX').
>
>Does the same problem happens when you invoke Make from COMMAND.COM, not 
>from Bash?

Yes, it does.  Execute the test I posted with make from the
COMMAND.COM prompt and the results are the same as under bash:
"/bin/rm -f" works, while "/BIN/rm -f" fails.  Setting
PATH_SEPARATOR=; under COMMAND.COM does not change the behavior.

Complete bash "set" environment and complete DOS command line
environement follow:

Bash environment:

BASH=/bin/bash.exe
BASH_VERSION=1.14.7(2)
BLASTER=A220 I5 D1 H5 P330 T6 E620
CMD=C:/COMMAND.COM
CMDLINE=h:\djgpp\bin\bash         
COMSPEC=C:\COMMAND.COM
DJDIR=h:/djgpp
DJGPP=h:\djgpp\DJGPP.ENV
DOSPATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\;D:\BAT;D:\UT;D:\PT;
C:\TCPDOS\BIN;C:\PS1TOOLS;D:\EXTRA!;H:\BORLAND\CBUILD~1\BIN
EMU387=h:/djgpp/bin/emu387.dxe
ETC=C:\TCPDOS\ETC
EUID=42
HISTFILE=h:/djgpp/usr/users/pjf3/.bash_history
HISTFILESIZE=500
HISTSIZE=500
HOME=/usr/users/pjf3
HOSTTYPE=PCAT
IFS= 	

LFN=y
MAILCHECK=60
MAKESHELL=h:/djgpp/bin/sh.exe
OPTERR=1
OPTIND=1
OSTYPE=MSDOS
PATH=/BIN://C/WINDOWS://C/WINDOWS/COMMAND://C/://D/BAT://D/UT://D/PT:
//C/TCPDOS/BIN://C/PS1TOOLS://D/EXTRA!:H:/BORLAND/CBUILD~1/BIN
PATH_EXPAND=Y
PATH_SEPARATOR=:
PPID=1
PROMPT=$p$g
PS1=\s\w$ 
PS2=> 
PS4=+ 
PWD=//h/
SHELL=/bin/sh
SHLVL=1
SVCONFIG=APTIVA
SYSROOT=h:/djgpp
TEMP=C:\WINDOWS\TEMP
TERM=win32-win
TMP=C:\WINDOWS\TEMP
TMPDIR=h:/djgpp/tmp
UID=42
USER=dosuser
_=TERM
winbootdir=C:\WINDOWS
windir=C:\WINDOWS

DOS Environment:

TMP=C:\WINDOWS\TEMP
TEMP=C:\WINDOWS\TEMP
PROMPT=$p$g
winbootdir=C:\WINDOWS
COMSPEC=C:\COMMAND.COM
ETC=C:\TCPDOS\ETC
windir=C:\WINDOWS
BLASTER=A220 I5 D1 H5 P330 T6 E620
DJDIR=h:\djgpp
DJGPP=h:\djgpp\DJGPP.ENV
SYSROOT=h:/djgpp
HOME=/usr/users/pjf3
PATH_SEPARATOR=:
DOSPATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\;D:\BAT;D:\UT;D:\PT;
C:\TCPDOS\BIN;C:\PS1TOOLS;D:\EXTRA!;H:\BORLAND\CBUILD~1\BIN
PATH=H:\DJGPP\BIN;C:\WINDOWS;C:\WINDOWS\COMMAND;C:\;D:\BAT;D:\UT;D:\PT;
C:\TCPDOS\BIN;C:\PS1TOOLS;D:\EXTRA!;H:\BORLAND\CBUILD~1\BIN
SHELL=/bin/sh
CMD=C:/COMMAND.COM
PATH_EXPAND=Y
SVCONFIG=APTIVA
CMDLINE=dfx


----------------------------------------------------
Peter J. Farley III (pjfarley AT nospam DOT dorsai DOT org OR
                     pjfarley AT nospam DOT banet DOT net)

- Raw text -


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