www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/03/27/10:43:21

Date: Wed, 27 Mar 1996 23:34:58 -0800 (GMT)
From: "Rafael R. Sevilla" <rsevilla AT upd DOT edu DOT ph>
To: DJGPP newsgroup mail <djgpp AT delorie DOT com>
Subject: Ports of mv, rm, and other Unix programs
Message-ID: <Pine.SOL.3.91.960327231357.26056A-100000@sauron>
MIME-Version: 1.0

I've been experimenting with Bison and Flex under djgpp to develop a
little language similar to the HOC language invented by Kernighan and Pike
described in their book, "The Unix Programming Environment." It seems that
in order to create a y_tab.h file from a specified grammar, Bison expects
to find a mv program that accepts the -f switch which I know (I also work
on a Sun with System V) suppresses prompting on overwrites. I don't have
an mv program, and I attempted to work around this by aliasing the DOS
move command to mv by writing a batch file. However, I have to handle the
special case when switches are specified. Other instances require an rm
command that accepts the same switches as that in Unix. Once again, I am
left with the tedious task of writing workarounds when fundamentally
different switches are used to achieve desired effects. It gets worse. I
imagine the make utility port still expects commands such as cp, cat, etc,
which don't exist in DOS or whose equivalents don't quite work the same.
Is there a more complete port of such Unix commands which are expected? I
have Danix utilities but it's a bit incomplete. Perhaps the next revision
of djgpp should include such things (perhaps I'll do some of the writing,
when I have the time).

A side question: can anyone recommend a DOS port of vi? I have one but it
doesn't work as well as the original on System V. Yeah, yeah I know vi's a
tough editor, but IMHO it's the fastest one to use once you've gotten it
all figured out. I don't want to have to learn Emacs as well.

-------------------------------------------------------------------------
University of the Philippines                           Rafael R. Sevilla
PABX/OVCA: Diliman Networking Project          rsevilla AT sauron DOT upd DOT edu DOT ph
-------------------------------------------------------------------------

- Raw text -


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