Module Name: src Committed By: andvar Date: Fri May 20 07:47:17 UTC 2022
Modified Files: src/bin/ed: POSIX Log Message: fix some misspellings and remove trailing whitespaces. To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/bin/ed/POSIX Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/bin/ed/POSIX diff -u src/bin/ed/POSIX:1.10 src/bin/ed/POSIX:1.11 --- src/bin/ed/POSIX:1.10 Thu Nov 18 19:16:34 1999 +++ src/bin/ed/POSIX Fri May 20 07:47:16 2022 @@ -1,4 +1,4 @@ -$NetBSD: POSIX,v 1.10 1999/11/18 19:16:34 kristerw Exp $ +$NetBSD: POSIX,v 1.11 2022/05/20 07:47:16 andvar Exp $ This version of ed(1) is not strictly POSIX compliant, as described in the POSIX 1003.2 document. The following is a summary of the omissions, @@ -14,8 +14,8 @@ OMISSIONS 3) To support the BSD `s' command (see extension [1] below), substitution patterns cannot be delimited by numbers or the characters - `r', `g' and `p'. In contrast, POSIX specifies any character expect - space or newline can used as a delimiter. + `r', `g' and `p'. In contrast, POSIX specifies any character except + space or newline can be used as a delimiter. EXTENSIONS ---------- @@ -25,11 +25,11 @@ EXTENSIONS ii) `W' for appending text to an existing file, iii) `wq' for exiting after a write, iv) `z' for scrolling through the buffer, and - v) BSD line addressing syntax (i.e., `^' and `%') is recognized. + v) BSD line addressing syntax (i.e., `^' and `%') is recognized. 2) If crypt(3) is available, files can be read and written using DES encryption. The `x' command prompts the user to enter a key used for - encrypting/ decrypting subsequent reads and writes. If only a newline + encrypting/decrypting subsequent reads and writes. If only a newline is entered as the key, then encryption is disabled. Otherwise, a key is read in the same manner as a password entry. The key remains in effect until encryption is disabled. For more information on the @@ -77,11 +77,11 @@ DEVIATIONS 2) Since the behavior of `u' (undo) within a `g' (global) command list is not specified by POSIX, it follows the behavior of the SunOS ed: 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 + for each line matching a global pattern. In addition, each instance of `u' within a global command undoes all previous commands (including undo's) in the command list. This seems the best way, since the alternatives are either too complicated to implement or too confusing - to use. + to use. The global/undo combination is useful for masking errors that would otherwise cause a script to fail. For instance, an ed script