From 6716848f4be796b4299c5d517100a1a9d9e2e629 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Benencia?= Date: Fri, 28 Jun 2024 11:24:30 -0700 Subject: [PATCH] test_git.sh: add '-r' to 'read' to avoid mangling backslashes Fixes SC2162. Part of #891. --- test_git.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_git.sh b/test_git.sh index 0177468..80a7164 100755 --- a/test_git.sh +++ b/test_git.sh @@ -820,7 +820,7 @@ function list_tests() { declare -F \ | cut -f3 -d' ' \ | grep "^git::" \ - | while read X; do declare -F $X; done \ + | while read -r X; do declare -F $X; done \ | sort -n -k2 \ | cut -f1 -d' ' \ | sed 's/^git:://'