[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 04/08: [tests]: Use printf(1) better.
From: |
G. Branden Robinson |
Subject: |
[groff] 04/08: [tests]: Use printf(1) better. |
Date: |
Mon, 6 Mar 2023 16:22:22 -0500 (EST) |
gbranden pushed a commit to branch master
in repository groff.
commit 01b75d77548d67389815831dd451570ff28aa96e
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Mon Mar 6 09:30:00 2023 -0600
[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.
---
src/devices/grotty/tests/basic_latin_glyphs_map_correctly.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 04/08: [tests]: Use printf(1) better.,
G. Branden Robinson <=