On Tue, Mar 27, 2018 at 03:55:58PM +0200, Santiago R.R. wrote: > Hi Bjarni, > > El 17/03/18 a las 23:15, Bjarni Ingi Gislason escribió: > > Package: grep > > Version: 3.1-2 > > Severity: minor > > Tags: patch > > > > Dear Maintainer, > > > > Input file is grep.in.1 > > > > Test nr. 2: > > > > Enable and fix warnings from 'test-groff'. > > > ??? > > Thanks for you bug report. > > could you provide details about how to reproduce those tests (and > confirm the patch solves the warnings)? >
First: A patch for the groff (see bug #53043 on the "bug-groff" list, savannah.gnu.org/bugs/?53043) tmac/an-old.tmac | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tmac/an-old.tmac b/tmac/an-old.tmac index 9ae3b9f9..dd8ca295 100644 --- a/tmac/an-old.tmac +++ b/tmac/an-old.tmac @@ -511,7 +511,15 @@ . .ds an-empty \" this is referenced to avoid looping on, e.g., .RB ( \\ ) . +.de1 an-inputcheck +. if \\$2<2 \{\ +. tm \\n(.F:\\n(.c (macro \\$1): only \\$2 argument, but more are expected +. \} +.. +. .de1 RI +. an-inputcheck \\$0 \\n[.$] +. . if \\n[.$] \{\ . ds an-result \&\f[R]\\$1\" . shift @@ -526,6 +534,8 @@ .. . .de1 IR +. an-inputcheck \\$0 \\n[.$] +. . if \\n[.$] \{\ . ds an-result \&\f[I]\,\\$1\f[R]\" . shift @@ -540,6 +550,8 @@ .. . .de1 IB +. an-inputcheck \\$0 \\n[.$] +. . if \\n[.$] \{\ . ds an-result \&\f[I]\,\\$1\" . shift @@ -554,6 +566,8 @@ .. . .de1 BI +. an-inputcheck \\$0 \\n[.$] +. . if \\n[.$] \{\ . ds an-result \&\f[B]\\$1\" . shift @@ -568,6 +582,8 @@ .. . .de1 RB +. an-inputcheck \\$0 \\n[.$] +. . ds an-result \&\" . while (\\n[.$] >= 2) \{\ . as an-result \f[R]\\$1\f[B]\\$2\\*[an-empty]\" @@ -579,6 +595,8 @@ .. . .de1 BR +. an-inputcheck \\$0 \\n[.$] +. . ds an-result \&\" . while (\\n[.$] >= 2) \{\ . as an-result \f[B]\\$1\f[R]\\$2\\*[an-empty]\" -- 2.15.1 Second: a grep search; search for only one argument to macros for two alternating fonts: grep -n -e '^[.] *[BIR][BIRR] *[^ ]*$' \ -e '^[.] *[BIR][BIR] *"[^"]*["]*$' -- Bjarni I. Gislason