Skip to content

Commit 4f0dc56

Browse files
committed
test_git.sh: add quotes to to prevent globbing and word splitting
Fixes SC2086. Part of #891.
1 parent 6716848 commit 4f0dc56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test_git.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ function list_tests() {
820820
declare -F \
821821
| cut -f3 -d' ' \
822822
| grep "^git::" \
823-
| while read -r X; do declare -F $X; done \
823+
| while read -r X; do declare -F "$X"; done \
824824
| sort -n -k2 \
825825
| cut -f1 -d' ' \
826826
| sed 's/^git:://'

0 commit comments

Comments
 (0)