gbranden pushed a commit to branch master
in repository groff.

commit 01b75d77548d67389815831dd451570ff28aa96e
Author: G. Branden Robinson <[email protected]>
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)

_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to