OpenBSD ed(1) for DOS
=====================
* Introduction
* Documentation
* Hints
* Source Code
Introduction
============
This is portable OpenBSD ed(1) version 7.4 compiled for DOS.
It is compiled using the tiny-regex-c regular expression library.
* oed.exe is 16-bit
* oed32.exe is 32-bit, has LFN support, and requires a DPMI host
such as CWSDPMI
<
gopher://tilde.club/7/~freet/gophhub/?https://github.com/ibara/oed>
<
gopher://tilde.club/7/~freet/gophhub/?
https://github.com/gyrovorbis/tiny-regex-c>
Documentation
=============
* doc/oed.txt
* doc/tinyre.txt
* <
gopher://katolaz.net/0/ed_tutorial.txt>
Hints
=====
* tiny-regex-c requires + to be escaped in the following regex.
OLD: s/^+/-/
NEW: s/^\+/-/
* oed requires an address after the 't' command.
Specify the current line with '.'
OLD: /tea/t
NEW: /tea/t.
* DOS doesn't really do pipes
OLD: printf ",p\n" | ed TODO.txt
NEW: echo ,p>input.txt
NEW: oed TODO.txt <input.txt
OLD: r ! ls -l
NEW: !dir /lfn >tmp.txt
NEW: r tmp.txt
Source Code
===========
The source code is in the src/ directory.
My changes are in src/oed.dif
make -f Makefile.bcc ; build oed.com with BCC & tiny-regex-c
wmake -f Makefile.watcom ; build oed.exe with Watcom & tiny-regex-c
make -f Makefile.tinyre ; build oed32.exe with DJGPP & tiny-regex-c
make -f Makefile.dj ; build bsded.exe with DJGPP & BSD regex