Message-Id: <3.0.3.32.19980910221508.007ceb90@pop5.banet.net> Date: Thu, 10 Sep 1998 22:15:08 -0400 To: Eli Zaretskii From: "Peter J. Farley III" Subject: Re: Why does make fail to run path-qualified commands? Cc: djgpp AT delorie DOT com In-Reply-To: References: <35f464b3 DOT 10523416 AT news1 DOT banet DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Precedence: bulk At 09:43 PM 9/10/1998 +0300, you 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 dorsai DOT org OR pjfarley AT banet DOT net)