www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/12/12/23:43:14

From: sime AT fly DOT cc DOT fer DOT hr (S. Mikecin)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Using BASH as the shell - the solution
Date: 12 Dec 1996 16:55:15 GMT
Organization: FER, Croatia
Lines: 46
Distribution: world
Message-ID: <58pddj$d4d@bagan.srce.hr>
References: <gzoafrmihl7 DOT fsf AT pluto DOT dai DOT ed DOT ac DOT uk>
Reply-To: sime AT fly DOT cc DOT etf DOT hr
NNTP-Posting-Host: fly.cc.etf.hr
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Stephen Kitt (stephenk AT dai DOT ed DOT ac DOT uk) wrote:
: There was a thread here recently about using the DJGPP port of BASH as
: the shell. Here's how I do it...

: First, you'll need MS-DOS 6.0 or later. Now, shift everything you've
: got in AUTOEXEC.BAT to CONFIG.SYS, using INSTALL or INSTALLHIGH
: instructions for loading programs, and SET to set environment
: variables. Remember to SET your PATH, and put your DJGPP directory in
: it; also you'll need DJGPP=C:\GCC\DJGPP.ENV (or whatever). If you're
: using QEMM, replace LODAHI.COMs with INSTALL=C:\QEMM\LOADHI.COM
: etc. Now just put BASH on the SHELL line, as in
: SHELL=C:\GCC\BIN\BASH.EXE, and you're set...

: So for example this might give in CONFIG.SYS:

: 	DEVICE=C:\DOS\HIMEM.SYS
: 	DEVICE=C:\DOS\EMM386.EXE RAM INCLUDE=B000-B7FF INCLUDE=C800-F7FF
: 	etc.
: 	INSTALLHIGH=C:\DOS\MSCDEX.EXE ...
: 	INSTALLHIGH=C:\DOS\SMARTDRV.EXE 4096 128
: 	etc.
: 	SET PATH=C:\DOS;C:\WINDOWS;C:\GCC\BIN ...
: 	SET DJGPP=C:\GCC\DJGPP.ENV
: 	etc.
: 	SHELL=C:\GCC\BIN\BASH.EXE

: (Note that you need to give the full filename including extension to
: INSTALL).

: And there you go, BASH is the shell, COMMAND.COM never gets loaded,
: and no AUTOEXEC.BAT is required. I don't know what works with the
: CWSDPMI/BASH combo though; I suspect Windows won't load, and Borland
: 16-bit DPMI stuff won't work. I use QDPMI/BASH and everything works
: fine (everything I've tested anyway)... The only thing I miss is
: multiple consoles and true multi-tasking a la Linux!

I think that you complicated it too much...
The only thing that has to be done (except puting bash.exe in the shell
command of CONFIG.SYS) is to set PATH to a directory where BASH.EXE is.
This way bash.exe when executed will notice that if there is no DPMI host it
has to load cwsdpmi.exe, and since cwsdpmi.exe is in the path it can load
it!

                                          <E-mail:     sime AT fly DOT cc DOT fer DOT hr    >
                                          <2nd E-mail: simun DOT mikecin AT fer DOT hr  >
                                          <URL:    http://fly.cc.fer.hr/~sime>

- Raw text -


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