From faa1737afaeebb88761db57b0a21f0273339ac8a Mon Sep 17 00:00:00 2001 From: schwarze Date: Thu, 13 Jan 2022 08:39:24 +0000 Subject: [PATCH] Tedu support for the -xsh4.2 argument to the mdoc(7) .St macro because all of the following hold: * It is an alias for a part of an ancient standard that is no longer important. * To refer to that old standard, -xpg4.2 is readily available and portable. * It is unused in OpenBSD, FreeBSD, and NetBSD. * Groff never supported it. I agreed with G. Branden Robinson that deleting this from mandoc is preferable to adding it to groff. --- share/man/man7/mdoc.7 | 9 +++------ usr.bin/mandoc/st.c | 3 +-- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/share/man/man7/mdoc.7 b/share/man/man7/mdoc.7 index 5654a27f7b2..2ca9cc50fc2 100644 --- a/share/man/man7/mdoc.7 +++ b/share/man/man7/mdoc.7 @@ -1,4 +1,4 @@ -.\" $OpenBSD: mdoc.7,v 1.180 2021/12/05 15:53:46 jmc Exp $ +.\" $OpenBSD: mdoc.7,v 1.181 2022/01/13 08:39:24 schwarze Exp $ .\" .\" Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons .\" Copyright (c) 2010, 2011, 2013-2020 Ingo Schwarze @@ -15,7 +15,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: December 5 2021 $ +.Dd $Mdocdate: January 13 2022 $ .Dt MDOC 7 .Os .Sh NAME @@ -2499,10 +2499,7 @@ Based on POSIX.1 and POSIX.2, published in 1992. .br This standard was published in 1994. It was used as the basis for UNIX 95 certification. -The following three refer to parts of it. -.Pp -.It \-xsh4.2 -.St -xsh4.2 +The following two refer to parts of it. .Pp .It \-xcurses4.2 .St -xcurses4.2 diff --git a/usr.bin/mandoc/st.c b/usr.bin/mandoc/st.c index 27039fe5c4c..959338fafd8 100644 --- a/usr.bin/mandoc/st.c +++ b/usr.bin/mandoc/st.c @@ -1,4 +1,4 @@ -/* $OpenBSD: st.c,v 1.13 2018/12/14 01:17:46 schwarze Exp $ */ +/* $OpenBSD: st.c,v 1.14 2022/01/13 08:39:24 schwarze Exp $ */ /* * Copyright (c) 2009, 2010 Kristaps Dzonsons * @@ -65,7 +65,6 @@ LINE("-xpg4", "X/Open Portability Guide Issue\\~4 (\\(lqXPG4\\(rq)") LINE("-xpg4.2", "X/Open Portability Guide Issue\\~4, Version\\~2 (\\(lqXPG4.2\\(rq)") LINE("-xbd5", "X/Open Base Definitions Issue\\~5 (\\(lqXBD5\\(rq)") LINE("-xcu5", "X/Open Commands and Utilities Issue\\~5 (\\(lqXCU5\\(rq)") -LINE("-xsh4.2", "X/Open System Interfaces and Headers Issue\\~4, Version\\~2 (\\(lqXSH4.2\\(rq)") LINE("-xsh5", "X/Open System Interfaces and Headers Issue\\~5 (\\(lqXSH5\\(rq)") LINE("-xns5", "X/Open Networking Services Issue\\~5 (\\(lqXNS5\\(rq)") LINE("-xns5.2", "X/Open Networking Services Issue\\~5.2 (\\(lqXNS5.2\\(rq)") -- 2.20.1