gbranden pushed a commit to branch master
in repository groff.
commit 4cc61cb3d9f9d96cd3f9f6e00c966511facd4c01
Author: G. Branden Robinson <[email protected]>
AuthorDate: Thu Jun 13 08:42:09 2024 -0500
[mm]: Fix code style nits in test.
Migrate to more recent test conventions. Use lowercase shell variable
names. Dump test document output to standard output stream.
---
contrib/mm/tests/MT-5-includes-AT-in-SG.sh | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/contrib/mm/tests/MT-5-includes-AT-in-SG.sh
b/contrib/mm/tests/MT-5-includes-AT-in-SG.sh
index 4f23d53b9..7fb04127e 100755
--- a/contrib/mm/tests/MT-5-includes-AT-in-SG.sh
+++ b/contrib/mm/tests/MT-5-includes-AT-in-SG.sh
@@ -26,7 +26,7 @@ groff="${abs_top_builddir:-.}/test-groff"
#
# Thanks to Ken Mandelberg for the reproducer.
-EXAMPLE='.TL
+input='.TL
Inquiry
.AU "John SMITH"
.AT "Director"
@@ -36,8 +36,9 @@ sentence
.FC Sincerely,
.SG'
-echo "$EXAMPLE" \
- | "$groff" -Tascii -P-cbou -mm \
- | grep -Eqx '[[:space:]]+Director[[:space:]]*'
+output=$(echo "$input" | "$groff" -mm -Tascii -P-cbou)
+echo "$output"
+
+echo "$output" | grep -Eqx '[[:space:]]+Director[[:space:]]*'
# vim:set ai et sw=4 ts=4 tw=72:
_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit