groff-commit
[Top][All Lists]
Advanced

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

[groff] 03/74: tmac/tests/s_PN-works.sh: Report output.


From: G. Branden Robinson
Subject: [groff] 03/74: tmac/tests/s_PN-works.sh: Report output.
Date: Fri, 28 Apr 2023 15:10:40 -0400 (EDT)

gbranden pushed a commit to branch branden-2023-04-28
in repository groff.

commit 6ebc9339412a1a8da6ce370dfdfac1c7efa4b15b
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Wed Apr 5 20:05:30 2023 -0500

    tmac/tests/s_PN-works.sh: Report output.
    
    ...and revise code style to follow more recent test script conventions.
---
 tmac/tests/s_PN-works.sh | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/tmac/tests/s_PN-works.sh b/tmac/tests/s_PN-works.sh
index 1c726342a..ab95f7967 100755
--- a/tmac/tests/s_PN-works.sh
+++ b/tmac/tests/s_PN-works.sh
@@ -24,14 +24,12 @@ groff="${abs_top_builddir:-.}/test-groff"
 #
 # Ensure retention of superfluous but fossilized register PN.
 
-EXAMPLE=\
-'.bp 2
+input='.bp 2
 .LP
-This is page \n[PN].
-'
+This is page \n[PN].'
 
-printf "%s" "$EXAMPLE" \
-    | "$groff" -Tascii -P-cbou -ms \
-    | grep -Fqx 'This is page 2.'
+output=$(printf "%s\n" "$input" | "$groff" -ms -Tascii -P-cbou)
+echo "$output"
+echo "$output" | grep -Fqx 'This is page 2.'
 
 # vim:set ai et sw=4 ts=4 tw=72:



reply via email to

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