edward.ed.posix

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.

Index

Table of contents

Declarations

procedure exec-append

Append command.

(exec-append editor line data)

procedure exec-change

Change command.

(exec-change editor lines data)

procedure exec-read

Read command.

(exec-read editor line filename)

procedure exec-subst

Substitute command.

(exec-subst editor lines triplet nth)

procedure exec-delete

Delete command.

(exec-delete editor lines)

procedure %exec-edit

Edit command.

(%exec-edit editor filename)

procedure exec-edit

Edit without checking command.

(exec-edit editor filename)

procedure exec-filename

Filename command.

(exec-filename editor filename)

procedure exec-global

Global command.

(exec-global editor lines regex cmdstr)

procedure exec-interactive

Interactive global command.

(exec-interactive editor lines regex)

procedure exec-help

Help command.

(exec-help editor)

procedure exec-insert

Insert command.

(exec-insert editor line data)

procedure exec-join

Join command.

(exec-join editor lines)

procedure exec-mark

Mark command.

(exec-mark editor line mark)

procedure exec-list

List command.

(exec-list editor lines)

procedure exec-move

Move command.

(exec-move editor lines addr)

procedure exec-copy

Copy command.

(exec-copy editor lines addr)

procedure exec-undo

Undo command.

(exec-undo editor)

procedure exec-write

Write command.

(exec-write editor lines filename)

procedure exec-line-number

Line number command.

(exec-line-number editor addr)

procedure exec-number

Number command.

(exec-number editor lines)

procedure exec-print

Print command.

(exec-print editor lines)

procedure exec-prompt

Prompt command.

(exec-prompt editor)

procedure %exec-quit

Quit command.

(%exec-quit editor)

procedure exec-quit

Quit without checking command.

(exec-quit editor)

procedure exec-command

Shell escape command.

(exec-command editor cmd)

procedure exec-null

Null command.

(exec-null editor line)