aboutsummaryrefslogtreecommitdiff
path: root/bin/ed
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ed')
-rw-r--r--bin/ed/Makefile2
-rw-r--r--bin/ed/Makefile.depend3
-rw-r--r--bin/ed/POSIX1
-rw-r--r--bin/ed/README1
-rw-r--r--bin/ed/buf.c2
-rw-r--r--bin/ed/ed.15
-rw-r--r--bin/ed/ed.h3
-rw-r--r--bin/ed/glbl.c3
-rw-r--r--bin/ed/io.c2
-rw-r--r--bin/ed/main.c13
-rw-r--r--bin/ed/re.c2
-rw-r--r--bin/ed/sub.c2
-rw-r--r--bin/ed/test/Makefile2
-rw-r--r--bin/ed/test/README1
-rw-r--r--bin/ed/test/ckscripts.sh1
-rw-r--r--bin/ed/test/mkscripts.sh1
-rw-r--r--bin/ed/undo.c2
17 files changed, 3 insertions, 43 deletions
diff --git a/bin/ed/Makefile b/bin/ed/Makefile
index 1d4b7685c025..cad48082f186 100644
--- a/bin/ed/Makefile
+++ b/bin/ed/Makefile
@@ -1,5 +1,3 @@
-# $FreeBSD$
-
.include <src.opts.mk>
PACKAGE=runtime
diff --git a/bin/ed/Makefile.depend b/bin/ed/Makefile.depend
index cdd96948933d..6ef78fac5cbf 100644
--- a/bin/ed/Makefile.depend
+++ b/bin/ed/Makefile.depend
@@ -1,14 +1,11 @@
-# $FreeBSD$
# Autogenerated - do NOT edit!
DIRDEPS = \
- gnu/lib/csu \
include \
include/xlocale \
lib/${CSU_DIR} \
lib/libc \
lib/libcompiler_rt \
- secure/lib/libcrypto \
.include <dirdeps.mk>
diff --git a/bin/ed/POSIX b/bin/ed/POSIX
index 53d6b5328ca5..1c8ac2b3b212 100644
--- a/bin/ed/POSIX
+++ b/bin/ed/POSIX
@@ -1,4 +1,3 @@
-$FreeBSD$
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,
diff --git a/bin/ed/README b/bin/ed/README
index da11f9b0f32a..8f5234179119 100644
--- a/bin/ed/README
+++ b/bin/ed/README
@@ -1,4 +1,3 @@
-$FreeBSD$
ed is an 8-bit-clean, POSIX-compliant line editor. It should work with
any regular expression package that conforms to the POSIX interface
diff --git a/bin/ed/buf.c b/bin/ed/buf.c
index 68594a8ebb2d..1f111e7d513d 100644
--- a/bin/ed/buf.c
+++ b/bin/ed/buf.c
@@ -27,8 +27,6 @@
*/
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
-
#include <sys/file.h>
#include <sys/stat.h>
diff --git a/bin/ed/ed.1 b/bin/ed/ed.1
index 9ced0f96a872..0db9f8d76bb8 100644
--- a/bin/ed/ed.1
+++ b/bin/ed/ed.1
@@ -1,4 +1,3 @@
-.\" $FreeBSD$
.Dd April 9, 2021
.Dt ED 1
.Os
@@ -721,7 +720,7 @@ with
By default, only the first match in each line is replaced.
If the
.Em g
-(global) suffix is given, then every match to be replaced.
+(global) suffix is given, then every match is to be replaced.
The
.Em n
suffix, where
@@ -833,7 +832,7 @@ Write the addressed lines to
.Ar file .
Any previous contents of
.Ar file
-is lost without warning.
+are lost without warning.
If there is no default filename, then the default filename is set to
.Ar file ,
otherwise it is unchanged.
diff --git a/bin/ed/ed.h b/bin/ed/ed.h
index 4dcf5eb36f37..788106e68b51 100644
--- a/bin/ed/ed.h
+++ b/bin/ed/ed.h
@@ -23,9 +23,6 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
- * @(#)ed.h,v 1.5 1994/02/01 00:34:39 alm Exp
- * $FreeBSD$
*/
#include <sys/param.h>
diff --git a/bin/ed/glbl.c b/bin/ed/glbl.c
index d3677989235e..d0a1d570ee16 100644
--- a/bin/ed/glbl.c
+++ b/bin/ed/glbl.c
@@ -26,9 +26,6 @@
* SUCH DAMAGE.
*/
-#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
-
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/wait.h>
diff --git a/bin/ed/io.c b/bin/ed/io.c
index 697e0a4c7ab5..fda3f5d55fd6 100644
--- a/bin/ed/io.c
+++ b/bin/ed/io.c
@@ -26,8 +26,6 @@
*/
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
-
#include "ed.h"
/* read_file: read a named file/pipe into the buffer; return line count */
diff --git a/bin/ed/main.c b/bin/ed/main.c
index 82ab6d195038..57f1faba29c4 100644
--- a/bin/ed/main.c
+++ b/bin/ed/main.c
@@ -26,17 +26,6 @@
* SUCH DAMAGE.
*/
-#ifndef lint
-#if 0
-static const char copyright[] =
-"@(#) Copyright (c) 1993 Andrew Moore, Talke Studio. \n\
- All rights reserved.\n";
-#endif
-#endif /* not lint */
-
-#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
-
/*
* CREDITS
*
@@ -1300,7 +1289,7 @@ has_trailing_escape(char *s, char *t)
}
-/* strip_escapes: return copy of escaped string of at most length PATH_MAX */
+/* strip_escapes: return a copy of escaped string of at most length PATH_MAX */
char *
strip_escapes(char *s)
{
diff --git a/bin/ed/re.c b/bin/ed/re.c
index 03a343657bbf..3dacb619a2bc 100644
--- a/bin/ed/re.c
+++ b/bin/ed/re.c
@@ -27,8 +27,6 @@
*/
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
-
#include "ed.h"
const char *errmsg = "";
diff --git a/bin/ed/sub.c b/bin/ed/sub.c
index d12a5c9e1402..2bf70b8ac4bf 100644
--- a/bin/ed/sub.c
+++ b/bin/ed/sub.c
@@ -27,8 +27,6 @@
*/
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
-
#include "ed.h"
diff --git a/bin/ed/test/Makefile b/bin/ed/test/Makefile
index aedfb698f131..bd89a3d1d7c7 100644
--- a/bin/ed/test/Makefile
+++ b/bin/ed/test/Makefile
@@ -1,5 +1,3 @@
-# $FreeBSD$
-
SHELL= /bin/sh
ED= ${.OBJDIR}/ed
diff --git a/bin/ed/test/README b/bin/ed/test/README
index 74c4826a269d..6e0cee437b37 100644
--- a/bin/ed/test/README
+++ b/bin/ed/test/README
@@ -1,4 +1,3 @@
-# $FreeBSD$
The files in this directory with suffixes `.t', `.d', `.r' and `.err' are
used for testing ed. To run the tests, set the ED variable in the Makefile
diff --git a/bin/ed/test/ckscripts.sh b/bin/ed/test/ckscripts.sh
index deab47555f7a..ce02e18f53bc 100644
--- a/bin/ed/test/ckscripts.sh
+++ b/bin/ed/test/ckscripts.sh
@@ -3,7 +3,6 @@
# and compares their output against the .r files, which contain
# the correct output
#
-# $FreeBSD$
PATH="/bin:/usr/bin:/usr/local/bin/:."
ED=$1
diff --git a/bin/ed/test/mkscripts.sh b/bin/ed/test/mkscripts.sh
index 1b8b3ee53182..811a11d15be7 100644
--- a/bin/ed/test/mkscripts.sh
+++ b/bin/ed/test/mkscripts.sh
@@ -1,7 +1,6 @@
#!/bin/sh -
# This script generates ed test scripts (.ed) from .t files
#
-# $FreeBSD$
PATH="/bin:/usr/bin:/usr/local/bin/:."
ED=$1
diff --git a/bin/ed/undo.c b/bin/ed/undo.c
index 603e39f1ca53..d5f56833ec66 100644
--- a/bin/ed/undo.c
+++ b/bin/ed/undo.c
@@ -26,8 +26,6 @@
*/
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
-
#include "ed.h"