[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 01/05: [nroff]: Recognize -b and -z options.
From: |
G. Branden Robinson |
Subject: |
[groff] 01/05: [nroff]: Recognize -b and -z options. |
Date: |
Wed, 18 Nov 2020 05:42:08 -0500 (EST) |
gbranden pushed a commit to branch master
in repository groff.
commit 2219bd22de75e53e6e77908e221ffc9a16eed816
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Wed Nov 18 18:06:49 2020 +1100
[nroff]: Recognize -b and -z options.
* src/roff/nroff/nroff.sh: Recognize -b and -z options and pass them
through to troff. Document them in usage message.
* src/roff/nroff/nroff.1.man: Document new -b and -z options.
---
ChangeLog | 6 ++++++
NEWS | 3 ++-
src/roff/nroff/nroff.1.man | 8 +++++---
src/roff/nroff/nroff.sh | 4 ++--
4 files changed, 15 insertions(+), 6 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 3fd83cd..9818b8a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2020-11-18 G. Branden Robinson <g.branden.robinson@gmail.com>
+
+ * src/roff/nroff/nroff.sh: Recognize -b and -z options and pass
+ them through to troff. Document them in usage message.
+ * src/roff/nroff/nroff.1.man: Document new -b and -z options.
+
2020-11-17 G. Branden Robinson <g.branden.robinson@gmail.com>
* src/roff/troff/div.cpp (top_level_diversion::change_trap):
diff --git a/NEWS b/NEWS
index bfe8bed..167858f 100644
--- a/NEWS
+++ b/NEWS
@@ -72,7 +72,8 @@ o The new option -V emits the constructed groff command that
nroff would
this is a historical deficiency of the Bourne shell family not yet
corrected by the POSIX standard.
-o nroff now recognizes the -E option and passes it through to troff.
+o nroff now recognizes the -b, -E, and -z options and passes them
+ through to troff.
Macro Packages
--------------
diff --git a/src/roff/nroff/nroff.1.man b/src/roff/nroff/nroff.1.man
index 4ca9cf7..d621196 100644
--- a/src/roff/nroff/nroff.1.man
+++ b/src/roff/nroff/nroff.1.man
@@ -35,7 +35,7 @@
.\" ====================================================================
.
.SY @g@nroff
-.RB [ \-cCEhipStUV ]
+.RB [ \-bcCEhipStUVz ]
[\c
.BI \-d cs\c
]
@@ -145,6 +145,7 @@ Whitespace is
permitted between an option and its argument.
.
The
+.BR \-b ,
.BR \-C ,
.BR \-d ,
.BR \-E ,
@@ -156,9 +157,10 @@ The
.BR \-P ,
.BR \-r ,
.BR \-w ,
+.BR \-W ,
and
-.B \-W
-options have the effect described in
+.B \-Z
+options have the effects described in
.IR \%@g@troff (@MAN1EXT@).
.
.B \-c
diff --git a/src/roff/nroff/nroff.sh b/src/roff/nroff/nroff.sh
index 66f5334..d0a1289 100644
--- a/src/roff/nroff/nroff.sh
+++ b/src/roff/nroff/nroff.sh
@@ -75,7 +75,7 @@ do
-[dmMnoPrTwW])
echo "$prog: option '$1' requires an argument" >&2
exit 1 ;;
- -[CEipStU] | -[dMmrnoPwW]*)
+ -[bCEipStUz] | -[dMmrnoPwW]*)
opts="$opts $1" ;;
-T*)
Topt=$1 ;;
@@ -94,7 +94,7 @@ do
opts="$opts $1" ;;
--help)
cat <<EOF
-usage: nroff [-cCEhipStUV] [-dCS] [-mNAME] [-MDIR] [-nNUM] [-oLIST]
+usage: nroff [-bcCEhipStUVz] [-dCS] [-mNAME] [-MDIR] [-nNUM] [-oLIST]
[-Popt ...] [-rCN] [-Tname] [-wNAME] [-WNAME] [FILE ...]
EOF
exit 0 ;;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 01/05: [nroff]: Recognize -b and -z options.,
G. Branden Robinson <=