groff-commit
[Top][All Lists]
Advanced

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

[groff] 01/15: groff_man_style(7): Fix error in example.


From: G. Branden Robinson
Subject: [groff] 01/15: groff_man_style(7): Fix error in example.
Date: Mon, 16 Oct 2023 05:01:52 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit 3a23962ce2a79ed25d3bde1de93ad139d6293bb2
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Thu Oct 12 23:45:34 2023 -0500

    groff_man_style(7): Fix error in example.
    
    Drop `-i` flag, leftover from an earlier experiment.
    
    Also drop `-e` flag, since it's not necessary.  Neither SUSv1 (POSIX
    Issue 4, Version 2) nor POSIX Issue 8 (draft 3) requires it for a single
    script argument.
---
 tmac/groff_man.7.man.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tmac/groff_man.7.man.in b/tmac/groff_man.7.man.in
index 818565cb6..7807c41c0 100644
--- a/tmac/groff_man.7.man.in
+++ b/tmac/groff_man.7.man.in
@@ -2374,9 +2374,9 @@ hyphenation when setting arguments to
 have_MR=$(echo .pm | troff \-man 2>&1 | grep MR)
 if [ \-n "$have_MR" ]
 then
-  sed \-i \-e \(aq/@DEFINE_MR@/d\(aq myprog.man.in > myprog.man
+  sed \(aq/@DEFINE_MR@/d\(aq myprog.man.in > myprog.man
 else
-  sed \-i \-e \(aqs/@DEFINE_MR@/.de MR\e
+  sed \(aqs/@DEFINE_MR@/.de MR\e
 \&.  ie \e\e\e\en(.$=1 .I \e\e\e\e$1\e
 \&.  el .IR \e\e\e\e$1 (\e\e\e\e$2)\e\e\e\e$3\e
 \&../\(aq myprog.man.in > myprog.man



reply via email to

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