Skip to content

Commit 6716848

Browse files
committed
test_git.sh: add '-r' to 'read' to avoid mangling backslashes
Fixes SC2162. Part of #891.
1 parent ae368ba commit 6716848

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 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)