[hackers] [sbase] ed: Improve man page || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Sat, 13 Dec 2025 11:27:50 +0100 (CET)

commit daec4db8a3611927158611f3b0cbc082b4673e28
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.net>
AuthorDate: Sat Dec 13 11:14:15 2025 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.net>
CommitDate: Sat Dec 13 11:14:15 2025 +0100

    ed: Improve man page
    
    Add missing z command, give more bibliography and clarify
    some of the commands.

diff --git a/ed.1 b/ed.1
index c49d658..95c511c 100644
--- a/ed.1
+++ b/ed.1
_AT_@ -214,8 +214,16 @@ the addressed lines are appended to
 .Ar file
 instead.
 .It (.+1)
-Print the addressed line.
+An address without a command prints the addressed line.
 Sets the dot to that line.
+.It (+) Ns Ic z Ns Ar n
+Scrolls
+.Ar n
+lines starting at the addressed line.
+If
+.Ar n
+is not specified then
+it is defaulted to 24.
 .It ($)=
 Print the line number of the addressed line.
 The dot is unchanged.
_AT_@ -238,7 +246,33 @@ The dot is unchanged.
 .Sh SEE ALSO
 .Xr sed 1 ,
 .Xr regexp 3
+.Rs
+.%A B. W. Kernighan
+.%T A Tutorial Introduction to the UNIX Text Editor
+.Re
+.Rs
+.Rs
+.%A B. W. Kernighan
+.%T Advanced Editing on UNIX
+.Re
+.Rs
+.%A B. W. Kernighan
+.%A P. J. Plauger
+.%B Software Tools
+.%O Addison-Wesley
+.%D 1976
+.Re
+.Rs
+.%A B. W. Kernighan
+.%A P. J. Plauger
+.%B Software Tools in Pascal
+.%O Addison-Wesley
+.%D 1981
+.Re
 .Sh STANDARDS
 POSIX.1-2013.
 Except where noted here:
 g and v operate on single commands rather than lists delimited with '\e'.
+The command
+.Cm z
+is an extension to that specification.
Received on Sat Dec 13 2025 - 11:27:50 CET

This archive was generated by hypermail 2.3.0 : Sat Dec 13 2025 - 11:36:32 CET