diff options
author | G. Branden Robinson <g.branden.robinson@gmail.com> | 2023-02-17 01:13:38 -0600 |
---|---|---|
committer | G. Branden Robinson <g.branden.robinson@gmail.com> | 2023-02-17 06:12:11 -0600 |
commit | b2201256d1c5e49d6b7659b188e113e293f1c48e (patch) | |
tree | 69d53e3298affd6831201cf3a00b7623343b9472 /tmac | |
parent | 668a1b183b748473e2fec17bdde4db286129f659 (diff) | |
download | groff-git-b2201256d1c5e49d6b7659b188e113e293f1c48e.tar.gz |
[ms]: Port a test to Solaris 11 sed.
* tmac/tests/s_TC-works-with-percent-in-custom-titles.sh: Put newlines
after opening braces in sed scripts. macOS and GNU sed tolerate their
absence, but this sed does not.
* HACKING: Document this problem.
Diffstat (limited to 'tmac')
-rwxr-xr-x | tmac/tests/s_TC-works-with-percent-in-custom-titles.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tmac/tests/s_TC-works-with-percent-in-custom-titles.sh b/tmac/tests/s_TC-works-with-percent-in-custom-titles.sh index 53b90f85c..6939619e3 100755 --- a/tmac/tests/s_TC-works-with-percent-in-custom-titles.sh +++ b/tmac/tests/s_TC-works-with-percent-in-custom-titles.sh @@ -42,7 +42,11 @@ OUTPUT=$(echo "$EXAMPLE" | "$groff" -Tascii -P-cbou -ms) # test is the presence, adjacency, and ordering of non-blank lines. FILTERED_OUTPUT=$(echo "$OUTPUT" \ | sed '/^$/d' \ - | sed -n '/i/{N;/Table of Contents/{N;/Foo[. ][. ]*1/p;};}') + | sed -n '/i/{ +N;/Table of Contents/{ +N;/Foo[. ][. ]*1/p; +}; +}') test -n "$FILTERED_OUTPUT" # vim:set ai et sw=4 ts=4 tw=72: |