Re: Environmental Variables




On Mon, 8 Aug 2005, Ted Davis wrote:

> On Mon, 8 Aug 2005 19:42:05 -0300, "Norman L. DeForest"
> <af380@xxxxxxxxxxxxxx> wrote:
>
> >bash is a shell (and I believe that
> >shell has been ported to DOS and/or Windows).
>
> To my knowledge, only in the Cygwin context. It will run under CMD
> outside the Cygwin environment, but it's mostly useless unless as a
> Windows shell since the utilities it depends on are not in the path
> except when invoked under Cygwin. bash running as a shell in an Xterm
> window in KDE over Xfree86 under Cygwin under XP is an interesting
> experience in software layering.

Well, I haven't had time to play with it to see what it will do but
a long time ago I downloaded a zip file of Unix utilities ported to
Windows that includes the bash shell. A quick check (invoking echo, ls
and exit) shows that it *does* run on my Windows 98 machine:

c:\utils\unix>ver

4DOS 7.50 (Win98) DOS 7.10

c:\utils\unix>bash
bash$ echo $PATH $COMSPEC
C:/UTILS;C:/UTILS/UNIX;C:/WINDOWS;C:/WINDOWS/COMMAND C:\4D\4DOS.COM
bash$ ls ba*.*
bash.exe
bash$ exit
exit

c:\utils\unix>

The file size of that copy of bash.exe is 403968 bytes.

It's part of a collection of Unix utilities ported to DOS that I
downloaded a long time ago (as a single 1023772-byte *.zip file).
Unfortunately, I'm not sure what system I downloaded it from and I
can't Google for the zip filename as I was forced to truncate it to a
DOS-compatable 8.3 filename to download it with my DOS-based terminal
program.

Several archives of Unix ports to DOS in my bookmarks files appear
to have been visited by the 404 Fairy so I can't tell if they were
the original source or not. (Simtel appears to have deleted *all*
of the gnu utilities they used to have archived and a Google search
for native (not Cygwin) ports of bash to DOS and /or Windows finds
a lot of references but most point to the extinct Simtel archives.)

Garbo only has a port of the Korn shell (ms_sh23b.zip), not bash:
ftp://garbo.uwasa.fi/pc/unix/

--
Windows is *not* a "Toy OS". A screenshot of my current desktop:
<http://www.chebucto.ns.ca/~af380/MyDeskTop-Jun-22-2005.gif> Want a desktop
like that? (change ".zip" to ".gif" or "-files.gif" to see zip contents):
<http://www.chebucto.ns.ca/~af380/EtchASketch.zip>


.



Relevant Pages

  • Re: Ruby wildcard command line argument auto expansion
    ... I am using Windows XP "cmd" shell. ... bash or C-shell. ... rab:rab/tmp $ echo *.java ...
    (comp.lang.ruby)
  • Re: Environmental Variables
    ... BUT it is shell. ... >>NT does not have an underlying DOS - that is, it does not run as a DOS ... > complete and unlike real DOS, the 'DOS' window is in fact a Windows ... Windows 3.x runs on top of DOS so any shell has the DOS API available. ...
    (comp.os.msdos.programmer)
  • Re: Add user in Unix from command Line
    ... discributed with the system as the root shell. ... Unix and Xenix systems since 1983 I wind up with 'vi' as my ... windows and Linux GUI like kde and gnome. ... broke the maximum of 512 files you could have on DOS 1. ...
    (comp.unix.sco.misc)
  • Re: DOS Befehle
    ... sie explizit als "Meine Frage bezieht nicht auf DOS, ... auf die Shell eines NT-Derivats" gekennzeichnet sein sollten. ... wie Windows hier on-topic sein kann. ... MSDOS. ...
    (de.comp.os.msdos)
  • Re: Environmental Variables
    ... BUT it is shell. ... >NT does not have an underlying DOS - that is, it does not run as a DOS ... the 'DOS' window is in fact a Windows ... driver model] drivers. ...
    (comp.os.msdos.programmer)