Skip to content

Commit

Permalink
Quote arguments to tr in test-lib
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Robin Rosenberg authored and Junio C Hamano committed Sep 23, 2006
1 parent 5c7d2cf commit 3d5c0cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/test-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export GIT_AUTHOR_EMAIL GIT_AUTHOR_NAME
export GIT_COMMITTER_EMAIL GIT_COMMITTER_NAME
export EDITOR VISUAL

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

0 comments on commit 3d5c0cc

Please sign in to comment.