test_git.sh: add '-r' to 'read' to avoid mangling backslashes

Fixes SC2162. Part of #891.
This commit is contained in:
Raúl Benencia 2024-06-28 11:24:30 -07:00
parent ae368ba2f1
commit 6716848f4b
1 changed files with 1 additions and 1 deletions

View File

@ -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:://'