From 4f0dc5679bb50587459b1b15d9cb44eb40d2e259 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Benencia?= Date: Fri, 28 Jun 2024 11:25:25 -0700 Subject: [PATCH] test_git.sh: add quotes to to prevent globbing and word splitting Fixes SC2086. 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 80a7164..2a458d5 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 -r X; do declare -F $X; done \ + | while read -r X; do declare -F "$X"; done \ | sort -n -k2 \ | cut -f1 -d' ' \ | sed 's/^git:://'