ed

simple ed
git clone git://git.2f30.org/ed
Log | Files | Refs | LICENSE

commit 1435ae52c39e108c0764872377ed478e610cb4b5
parent 28c4ead6d7afb7c1f3bf6894d7570c8f2cfc98d3
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Tue,  1 Dec 2015 18:42:59 +0100

ed: when there is no previous cmd give an error (OpenBSD msg)

Diffstat:
Med.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/ed.c b/ed.c @@ -691,6 +691,8 @@ execsh(void) error("out of memory"); } system(cmd); + if (!cmd) + error("no previous command"); puts("!"); }