summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorG. Branden Robinson <g.branden.robinson@gmail.com>2023-03-06 09:30:00 -0600
committerG. Branden Robinson <g.branden.robinson@gmail.com>2023-03-06 14:01:02 -0600
commit01b75d77548d67389815831dd451570ff28aa96e (patch)
tree9a588bf0e0f6990e26c8b50e292112b28462bfd9 /src
parentdca4e915d06b723018d5dba4a458ff2d04cdbc78 (diff)
downloadgroff-git-01b75d77548d67389815831dd451570ff28aa96e.tar.gz
[tests]: Use printf(1) better.
Ensure we give printf a properly escaped backslash from the shell. Discovered on NetBSD 9.0; thanks to Bruno Haible for the report.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/devices/grotty/tests/basic_latin_glyphs_map_correctly.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/grotty/tests/basic_latin_glyphs_map_correctly.sh b/src/devices/grotty/tests/basic_latin_glyphs_map_correctly.sh
index 9e9ccfc5e..92552d27d 100755
--- a/src/devices/grotty/tests/basic_latin_glyphs_map_correctly.sh
+++ b/src/devices/grotty/tests/basic_latin_glyphs_map_correctly.sh
@@ -144,7 +144,7 @@ do
echo "$output" | grep -Fqx 'abcdefghijklmnopqrstuvwxyz{|}' || wail
printf '" ' >&2
echo "$output" | grep -Fqx 'neutral double quote: "' || wail
- printf "\\ " >&2
+ printf '\\ ' >&2
echo "$output" | grep -Fqx 'backslash: \' || wail
case $D in
(utf8)