summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmc <jmc@openbsd.org>2015-06-22 14:46:59 +0000
committerjmc <jmc@openbsd.org>2015-06-22 14:46:59 +0000
commitd26cd92be8ff3bf764767357dfb29f1ff62c54f9 (patch)
treeeab4efe1d1b0d976350de7e25844c68687a5802c
parentDo not update frame lengths to reflect what has really been transfered (diff)
downloadwireguard-openbsd-d26cd92be8ff3bf764767357dfb29f1ff62c54f9.tar.xz
wireguard-openbsd-d26cd92be8ff3bf764767357dfb29f1ff62c54f9.zip
theo buehler points out that posix specifies a prompt defined using -p
be reinstated when toggled off then on again; this seems to make sense, but posix is not explicit. we know that gnu ed and freebsd do reinstate the user defined prompt, but we do not. no one has yet stepped up to change this, so i'm adding a note to this effect until such a time as we do/ i have not tweaked the text for -p or "P" to allow for an easy back out if behaviour does change;
-rw-r--r--bin/ed/ed.116
1 files changed, 14 insertions, 2 deletions
diff --git a/bin/ed/ed.1 b/bin/ed/ed.1
index f1d0c82c453..ed8db25bcd3 100644
--- a/bin/ed/ed.1
+++ b/bin/ed/ed.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: ed.1,v 1.63 2014/12/04 08:36:32 daniel Exp $
+.\" $OpenBSD: ed.1,v 1.64 2015/06/22 14:46:59 jmc Exp $
.\"
.\" Copyright (c) 1993 Andrew Moore, Talke Studio.
.\" All rights reserved.
@@ -24,7 +24,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: December 4 2014 $
+.Dd $Mdocdate: June 22 2015 $
.Dt ED 1
.Os
.Sh NAME
@@ -826,6 +826,18 @@ and that
characters
within the text should be output preceded by a backslash;
this implementation does not support that.
+.Pp
+The
+.St -p1003.1-2008
+specification suggests,
+but does not say explicitly,
+that the result of a user defined prompt
+.Pq Fl p
+being turned off then on again with the
+.Ic P
+command should restore the user defined prompt;
+this implementation currently restores the default prompt
+.Pq * .
.Sh HISTORY
An
.Nm