gbranden pushed a commit to branch branden-2023-07-05 in repository groff. commit f5cbad58161cde641bb97ded1c2bcd8aefa8d2a1 Author: G. Branden Robinson <g.branden.robin...@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: _______________________________________________ Groff-commit mailing list Groff-commit@gnu.org https://lists.gnu.org/mailman/listinfo/groff-commit