diff options
author | alm <alm@FreeBSD.org> | 1993-06-26 06:47:21 +0000 |
---|---|---|
committer | alm <alm@FreeBSD.org> | 1993-06-26 06:47:21 +0000 |
commit | 3ee56e1af8d1034ab3f1f81bb3bca6e2e88bd8d8 (patch) | |
tree | a75d2f4512b2836bcc2e21f718151792e640b67f /bin/ed/POSIX | |
parent | c1b03d1c9c4a42a7c8acab252f2fd926b376b882 (diff) | |
download | FreeBSD-src-3ee56e1af8d1034ab3f1f81bb3bca6e2e88bd8d8.zip FreeBSD-src-3ee56e1af8d1034ab3f1f81bb3bca6e2e88bd8d8.tar.gz |
fixed undo within a global command (would corrupt the buffer)
changed move within a global to behave as in SunOS
added a couple error messages
Diffstat (limited to 'bin/ed/POSIX')
-rw-r--r-- | bin/ed/POSIX | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/ed/POSIX b/bin/ed/POSIX index dd506fb..47a80b9 100644 --- a/bin/ed/POSIX +++ b/bin/ed/POSIX @@ -48,3 +48,15 @@ Though ed is not a binary editor, it can be used (if painfully) to edit binary files. To assist in binary editing, when a file containing at least one ASCII NUL character is written, a newline is not appended if it did not already contain one upon reading. + +Since the behavior of `u' (undo) within a `g' (global) command list is +not specified by POSIX D11/2, it follows the behavior of the SunOS ed +(this is the best way, I think, in that the alternatives are either too +complicated to implement or too confusing to use): undo forces a global +command list to be executed only once, rather than for each line matching +a global pattern. In addtion, each instance of `u' within a global command +undoes all previous commands (including undo's) in the command list. + +The `m' (move) command within a `g' command list also follows the SunOS +ed implementation: any moved lines are removed from the global command's +`active' list. |