Skip to content

Commit 3d5c0cc

Browse files
robinrosenbergJunio C Hamano
authored andcommitted
Quote arguments to tr in test-lib
When there are single-character filenames in the test directory, the shell tries to expand regexps meant for tr. Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent 5c7d2cf commit 3d5c0cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/test-lib.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export GIT_AUTHOR_EMAIL GIT_AUTHOR_NAME
3434
export GIT_COMMITTER_EMAIL GIT_COMMITTER_NAME
3535
export EDITOR VISUAL
3636

37-
case $(echo $GIT_TRACE |tr [A-Z] [a-z]) in
37+
case $(echo $GIT_TRACE |tr "[A-Z]" "[a-z]") in
3838
1|2|true)
3939
echo "* warning: Some tests will not work if GIT_TRACE" \
4040
"is set as to trace on STDERR ! *"

0 commit comments

Comments
 (0)