bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v2 01/18] doc/bash.1: fix rendering error on old *roffs


From: G. Branden Robinson
Subject: [PATCH v2 01/18] doc/bash.1: fix rendering error on old *roffs
Date: Wed, 31 Jan 2024 12:53:45 -0600

Hi Chet,

Sorry--I need to update 2 of the items in this series.

v2: Fix a goof where I regressed the escaped hyphen in "self-insert".

The man(7) in Seventh Edition Unix (1979) accepted at most six arguments
to any macro.  Documenter's Workbench 3.3 troff retains this limitation,
as do at least some System V troffs that survive in commercial Unix
(such as Solaris 10 troff).

Quote the mulitiplicity of arguments so that they will appear.

Also simplify a similar case which was using the unadjustable space
escape sequence `\ ` to work around the same problem.  Since a paragraph
tag normally doesn't break or adjust anyway, the usage was mysterious.
Drop the backslashes and quote the tag as one big argument instead.

Diff of rendering (DWB):

             ||   logical OR
             expr?expr:expr
                  conditional operator
-            = *= /= %= += -=
+            = *= /= %= += -= <<= >>= &= = |=
                  assignment
             expr1 , expr2
                  comma
---
 doc/bash.1 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/doc/bash.1 b/doc/bash.1
index bd916b28..e218ae43 100644
--- a/doc/bash.1
+++ b/doc/bash.1
@@ -4860,7 +4860,7 @@ .SH "ARITHMETIC EVALUATION"
 .B \fIexpr\fP?\fIexpr\fP:\fIexpr\fP
 conditional operator
 .TP
-.B = *= /= %= += \-= <<= >>= &= \(ha= |=
+.B "= *= /= %= += \-= <<= >>= &= \(ha= |="
 assignment
 .TP
 .B \fIexpr1\fP , \fIexpr2\fP
@@ -6902,7 +6902,7 @@ .SS Commands for Changing Text
 .B tab\-insert (C\-v TAB)
 Insert a tab character.
 .TP
-.B self\-insert (a,\ b,\ A,\ 1,\ !,\ ...)
+.B "self\-insert (a, b, A, 1, !, ...)"
 Insert the character typed.
 .TP
 .B transpose\-chars (C\-t)
-- 
2.30.2

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]