Message-ID: <3506D2DB.2F82@CGSTE.MQ> Date: Wed, 11 Mar 1998 12:07:23 -0600 From: HANRIGOU Philippe Reply-To: HANRIGOU AT cgste DOT mq Organization: CONSEIL GENERAL DE LA MARTINIQUE / DGA2 MIME-Version: 1.0 To: djgpp AT delorie DOT com Subject: Re: Problem with bash Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Precedence: bulk Eli Zaretskii wrote: > > On Thu, 5 Mar 1998, HANRIGOU Philippe wrote: > > > I've seen Control Panel's "System General" tab and run the 'ver' > > command: It seams that my version is 4.00.950. I've got no beta version > > or release indication (as "-r7"). > > So it's not the Windows version. > Were can I look for this Windows version? > > > I've tried but I've got no DPMI server! Should I get csdpmi*b.zip as > > suggested in the error message, and install it? > > Yes, definitely. CWSDPMI is not used when you run from Windows, so you > can install it without any problems to you. > I've downloaded it. Bash works fine if I boot into plain dos. > > Note that, of course, "echo hello | foo" works perfectly from the dos > > shell. > > Actually, I meant to run these programs from the DOS shell, not from Bash. > I wanted to see whether just reading keyboard input freezes the system. I > guess the answer is NO. > Good guess! :) > Btw, how do you launch Bash? Do you open a DOS box, and then type > "bash [Enter]" from the DOS prompt? Exactly! > If not, please try running Bash > that way and see if it helps. You could also invoke COMMAND.COM from > Bash, and try running DJGPP programs from there and see if that helps. > If I invoke COMMAND.COM from Bash, everything works well (I can run as many DJGPP programs as I want). Nevertheless, as soon as I exit the DOS shell and come back to Bash everything is freezed. > Also, what does go32-v2 print when you run it in the same DOS box where > you run Bash? > If I run go32-v2 from bash I get D:\ph>bash bash$ go32-v2 go32/v2 version 2.0 built Aug 12 1996 22:27:23 Usage: go32 coff-image [args] Rename this to go32.exe only if you need a go32 that can run v2 binaries as well as v1 binaries (old makefiles). Put ahead of the old go32 in your PATH but do not delete your old go32 - leave it in the PATH after this one. Set GO32_V2_DEBUG=y in the environment to get verbose output. DPMI memory available: 21383 Kb DPMI swap space available: 6705 Kb And if I run go32-v2 after exiting Bash (with CTRL+BREAK) I get D:\ph>go32-v2 go32/v2 version 2.0 built Aug 12 1996 22:27:23 Usage: go32 coff-image [args] Rename this to go32.exe only if you need a go32 that can run v2 binaries as well as v1 binaries (old makefiles). Put ahead of the old go32 in your PATH but do not delete your old go32 - leave it in the PATH after this one. Set GO32_V2_DEBUG=y in the environment to get verbose output. DPMI memory available: 21399 Kb DPMI swap space available: 8353 Kb > Another thing to check: if your system loads programs at startup, close > all of them and then run Bash. > I've done it, but the problem's still here... > > Maybe I could download a 'ready to test' version of bash compiled with > > "-g" option. Do you know where I could find that?. > > I don't think there is such a version available anywhere. > Martin Stromberg may have one. Meanwhile I still try to compile Bash (do not work with default makefile): I guess the makefiles were developped under Unix (or Linux) as some "littles things" do not work: for instance main makefile try to create a ".notified" file using "touch .notified" which do not seam to work under windows95 (would be better with a "_notified" file I guess). > If none of the above gives a clue, please post your configuration files > (CONFIG.SYS, AUTOEXEC.BAT, and the output of the command "set" at the > DOS/Bash prompt). Here is my config.sys: DEVICE=C:\WINDOWS\HIMEM.SYS DEVICE=C:\WINDOWS\EMM386.EXE NOEMS X=CC00-CFFF DOS=HIGH,UMB DEVICEHIGH=C:\WINDOWS\COMMAND\ANSI.SYS SHELL=C:\COMMAND.COM C:\ /E:1024 /P device=C:\WINDOWS\COMMAND\display.sys con=(ega,,1) Country=033,850,C:\WINDOWS\COMMAND\country.sys Now, my autoexec.bat (call profile.bat given below): SET DMIDIR=C:\DMI SET TZ=cst6cdt @ECHO OFF PROMPT $p$g PATH C:\WINDOWS;C:\WINDOWS\COMMAND;C:\;C:\DOS SET TEMP=c:\temp SET PATH=%PATH%;C:\IEXPLORE\mail SET PATH=%PATH%;C:\IEXPLORE set ieppp=C:\IEXPLORE set pctcp=C:\IEXPLORE\pctcp.shv F: mode con codepage prepare=((850) C:\WINDOWS\COMMAND\ega.cpi) mode con codepage select=850 keyb fr,,C:\WINDOWS\COMMAND\keyboard.sys rem ---- set by ph ---- set own environement call d:\ph\profile.bat Profile.bat file (as promised): rem /* rem * profile.bat rem * rem * Called by autoexec.bat to set own dos environement. rem * ph - 22/11/97 rem */ set HOME=d:\ph rem ----------- DJGPP ---------- set PATH=%path%;%HOME%\bin\bin\djgpp\bin set DJGPP=%HOME%\bin\bin\djgpp\djgpp.env set INFOPATH=%HOME%\bin\bin\djgpp\info set TMPDIR=c:\tmp rem ------- Own utilities ------ set PATH=%PATH%;%HOME%\bin\bin; set PATH=%PATH%;%HOME%\bin\bin\vi; set PATH=%PATH%;%HOME%\bin\bin\hex;%HOME%\bin\bin\fix; set PATH=%PATH%;%HOME%\bin\bin\ufc;%HOME%\bin\bin\comp; set PATH=%PATH%;%HOME%\bin\bin\zcopy; rem --------- Scripts -------- set PATH=%PATH%;%HOME%\bin\scripts; rem ----------- PERL ---------- set PERL_PATH=%HOME%\bin\bin\perl\bin set PERL_SC_PATH=%HOME%\bin\scripts\perl set PATH=%path%;%PERL_PATH% rem ----------- VIM ----------- set VIM=%HOME%\bin\bin\vi\doc rem ----- Borland C++ 3.1 ------ set PATH=%PATH%;%HOME%\bin\bin\bc\bin; And finally the output of the set command: * from DOS prompt D:\ph>set TMP=C:\WINDOWS\TEMP winbootdir=C:\WINDOWS COMSPEC=C:\COMMAND.COM DMIDIR=C:\DMI TZ=cst6cdt PROMPT=$p$g TEMP=C:\temp IEPPP=C:\IEXPLORE PCTCP=C:\IEXPLORE\pctcp.shv HOME=d:\ph DJGPP=d:\ph\bin\bin\djgpp\djgpp.env INFOPATH=d:\ph\bin\bin\djgpp\info TMPDIR=c:\tmp PERL_PATH=d:\ph\bin\bin\perl\bin PERL_SC_PATH=d:\ph\bin\scripts\perl VIM=d:\ph\bin\bin\vi\doc PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\;C:\DOS;C:\IEXPLORE\MAIL;C:\IEXPLORE;D:\PH \BIN\BIN\DJGPP\BIN;D:\PH\BIN\BIN;;D:\PH\BIN\BIN\VI;;D:\PH\BIN\BIN\HEX;D:\PH\BIN\ BIN\FIX;;D:\PH\BIN\BIN\UFC;D:\PH\BIN\BIN\COMP;;D:\PH\BIN\BIN\ZCOPY;;D:\PH\BIN\SC RIPTS;;D:\PH\BIN\BIN\PERL\BIN;D:\PH\BIN\BIN\BC\BIN; windir=C:\WINDOWS CMDLINE=vi autoexec.bat * from BASH prompt BASH=d:/ph/bin/bin/djgpp/bin/bash.exe BASH_VERSION=1.14.7(1) CMDLINE=bash COMSPEC=C:\COMMAND.COM DJDIR=d:/ph/bin/bin/djgpp DJGPP=d:\ph\bin\bin\djgpp\djgpp.env DMIDIR=C:\DMI EMU387=d:/ph/bin/bin/djgpp/bin/emu387.dxe EUID=42 HISTFILE=d:/ph/.bash_history HISTFILESIZE=500 HISTSIZE=500 HOME=d:/ph HOSTTYPE=PCAT IEPPP=C:\IEXPLORE IFS= INFOPATH=d:\ph\bin\bin\djgpp\info LFN=y MAILCHECK=60 OPTERR=1 OPTIND=1 OSTYPE=MSDOS PATH=C:/WINDOWS;C:/WINDOWS/COMMAND;C:/;C:/DOS;C:/IEXPLORE/MAIL;C:/IEXPLORE;D:/PH/BIN/BIN/DJGPP/BIN;D:/PH/BIN/BIN;;D:/PH/BIN/BIN/VI;;D:/PH/BIN/BIN/HEX;D:/PH/BIN/BIN/FIX;;D:/PH/BIN/BIN/UFC;D:/PH/BIN/BIN/COMP;;D:/PH/BIN/BIN/ZCOPY;;D:/PH/BIN/SCRIPTS;;D:/PH/BIN/BIN/PERL/BIN;D:/PH/BIN/BIN/BC/BIN; PCTCP=C:\IEXPLORE\pctcp.shv PERL_PATH=d:\ph\bin\bin\perl\bin PERL_SC_PATH=d:\ph\bin\scripts\perl PPID=1 PROMPT=$p$g PS1=bash\$ PS2=> PS4=+ PWD=d:/ph SHELL=C:\COMMAND.COM SHLVL=1 TEMP=C:\temp TMP=C:\WINDOWS\TEMP TMPDIR=c:\tmp TZ=cst6cdt UID=42 USER=dosuser VIM=d:\ph\bin\bin\vi\doc winbootdir=C:\WINDOWS windir=C:\WINDOWS That's all! Hope you'll have an idea and thank you for you help. Regards, Philippe.