Beattie ed
==========

* Introduction
* Documentation
* Limitations
* Compile with BCC
* Compile with DJGPP
* Compile with Watcom
* Cross-compile on Slackware with BCC
* Cross-compile on Slackware with DJGPP
* Cross-compile on Slackware with Watcom
* File key
* Older versions

Introduction
============

This is a DOS version of a *nix-style line editor by Brian Beattie.

New features:

* 'n' command
* % substitution in '!' command
* end of output ! marker in '!' command
* repeat last substitution with bare 's' command

Documentation
=============

* doc/ed.txt
* doc/tutorial.txt

Limitations
===========

ed.exe is compiled with Watcom and can only use 640kb conventional
memory and short 8+3 filenames.

ed32.exe compiled with DJGPP requires a DPMI server such as CWSDPMI.

Technical maximum limits:

ed.exe:

    Line:      256 characters long
    Regex:     256 characters long
    Filename:  256 characters long

ed32.exe:

    Line:     8192 characters long
    Regex:    1024 characters long
    Filename: 1024 characters long

System command:

    126 characters long (approximate)

Compile with BCC
================

    Run mkbcc.bat

Compile with DJGPP
==================

    Run mkdjgpp.bat

Compile with Watcom
===================

    Run mkwatcom.bat

Cross-compile on Slackware with BCC
=====================================

    make -f Makefile.bcc

Cross-compile on Slackware with DJGPP
=====================================

    make -f Makefile.dj

Cross-compile on Slackware with Watcom
======================================

    wmake -f Makefile.wat

File key
========

ed.exe           - Beattie ed compiled with Watcom
ed32.exe         - Beattie ed compiled with DJGPP
src\Makefile.bcc - Cross-compiled on Slackware with BCC
src\Makefile.dj  - Cross-compiled on Slackware with DJGPP
src\Makefile.wat - Cross-compiled on Slackware with Watcom
src\mkbcc.bat    - Compile ed with BCC
src\mkdjgpp.bat  - Compile ed with DJGPP
src\mkwatcom.bat - Compile ed with Watcom
src\ed.old       - Original ed.c (from minix in 2010)
src\ed.c         - Changed for DOS compilers and new features

Source code
===========

Based on minix source:

<https://git.minix3.org/index.cgi?p=minix.git;a=tree;f=commands/ed;
h=4118bbb1bcbf475fdd547f5c0408f5f4766d338a;
hb=d65f6f70097893d1dfe5e389f081f247bf3df183>

Older versions
==============

These were built with Borland Turbo-C.

<http://www.retroarchive.org/garbo/pc/editor/ed.zip>

<ftp://ftp.oldskool.org/pub/simtelnet/msdos/editor/ed_el.zip>
