This library implements the editor commands mandated by the POSIX.1-2008 ed(1) specification. This is achieved by leveraging the edward ed cmd abstraction. The executor for all POSIX ed commands is exported and can be reused to implement new commands.
Append command.
(exec-append editor line data)
Change command.
(exec-change editor lines data)
Read command.
(exec-read editor line filename)
Substitute command.
(exec-subst editor lines triplet nth)
Delete command.
(exec-delete editor lines)
Edit command.
(%exec-edit editor filename)
Edit without checking command.
(exec-edit editor filename)
Filename command.
(exec-filename editor filename)
Global command.
(exec-global editor lines regex cmdstr)
Interactive global command.
(exec-interactive editor lines regex)
Help command.
(exec-help editor)
Insert command.
(exec-insert editor line data)
Join command.
(exec-join editor lines)
Mark command.
(exec-mark editor line mark)
List command.
(exec-list editor lines)
Move command.
(exec-move editor lines addr)
Copy command.
(exec-copy editor lines addr)
Undo command.
(exec-undo editor)
Write command.
(exec-write editor lines filename)
Line number command.
(exec-line-number editor addr)
Number command.
(exec-number editor lines)
Print command.
(exec-print editor lines)
Prompt command.
(exec-prompt editor)
Quit command.
(%exec-quit editor)
Quit without checking command.
(exec-quit editor)
Shell escape command.
(exec-command editor cmd)
Null command.
(exec-null editor line)