Date: Fri, 24 Oct 1997 17:20:23 +0100 (MET) From: Hans Ecke To: Eli Zaretskii cc: djgpp AT delorie DOT com Subject: Re: Running programs from inside bash In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk Some days ago I posted a question about errors that occur while trying to run non-DJGPP-programs from inside bash. > All of the programs that you say don't work are non-DJGPP programs. > Is it correct that *every* DJGPP-compiled program works? Yes, DJGPP-programs run OK I also noticed, that I can call any program from inside bash like this : c:>c:/command.com /c nc.exe But it should be a blame, that bash is not able to load&execute simple dos executables! > If that's true, then I would suspect the PATH variable. Depending on > your setup, Bash might change it to e.g. forward slashes; it can even > change "C:\FOO\BAR" into "//c/foo/bar" which will probably confuse > many DOS programs. > So please post here the output of the command "set" when issued inside > Bash. (Say "set > env.lst" and post the contents of env.lst.) I cut away all stuff that can not interfere with programs BASH=/gnu/bin/bash.exe BASH_VERSION=1.14.7(1) COMSPEC=command.com DJDIR=c:/gnu DJGPP=C:\GNU\DJGPP.ENV EMU387=c:/gnu/bin/emu387.dxe EUID=42 HOME=c:\etc HOST=pc HOSTTYPE=PCAT IFS= LFN=n LOGIN_SHELL=true OLDPWD=/etc OS=NWDOS OSTYPE=MSDOS PATH=d:;c:\;c:\stacker;c:\opendos;c:\dos;c:\gnu\bin;c:\etc;c:\etc\bat;c:\etc\bin;c:\windows;c:\norton;c:\lang\bp\bin;c:\hardwar PATH_EXPAND=Y PATH_SEPARATOR=; PATH_SLASH=\ PPID=1 PWD=c:/ SHELL=c:\command.com SHLVL=1 SYSROOT= UID=42 USER=dosuser VER=7 VERSION_CONTROL=simple _=c:/ history_control=ignoredups ignoreeof=10 Its a week or so ago, that I posted my question, so here again a snippet from my message 2.) My configuration on the beginning OpenDOS 7.02 - should be the same as NovellDOS 7 Stacker 4 (e:/stacvol.dsk maps to c:) DJGPP 2.01 bash 1.14.7 and the error messages I got >mem (from OpenDOS) Parameter not recognized. [exited with 4] >bp (Borland Pascal IDE) Borland Pascal Version 7.0 Copyright (c) 1983,92 Borland International Internal error 254 at 0001:4873. [exited with 1] ...same happens with turbo, the Turbo Pascal IDE >nc (Norton Commander) Unable to read message file >nwcache /s (OpenDOS disk cacher - show statistics) ...fine >edit (OpenDOS editor) ...fine >dir (c:/stacker/dir.com) Stacker SDIR-program not found. [exited with 1] ...calls stacker`s c:/stacker/sdir.exe >diskedit (Norton Utilities diskeditor) ...fine >ncd (Norton Utilities fast directory changer) ...needs long to load, much harddiskaccess in this time ...in full-screen-mode : works fine, but coldboots computer after exit ...in command-line-mode: says, that it works, but nothing happens. No boots. Thank you in advance Hans