diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2015-06-22 14:47:00 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2015-06-22 14:47:00 +0000 |
commit | 2c2f8fb1201d7cfb2327bb2995a78a5af03df1f3 (patch) | |
tree | 00ce8ebc26fbc1c713ccb5b14d2a323400723164 | |
parent | eb9176cc781090737b89b8968fb77e3a7399fec3 (diff) |
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.1 | 16 |
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 |