From: jmc Date: Mon, 22 Jun 2015 14:46:59 +0000 (+0000) Subject: theo buehler points out that posix specifies a prompt defined using -p X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=d26cd92be8ff3bf764767357dfb29f1ff62c54f9;p=openbsd 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; --- 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