summaryrefslogtreecommitdiff
path: root/t/test-lib.sh
diff options
context:
space:
mode:
authorRobin Rosenberg <robin.rosenberg@dewire.com>2006-09-22 22:35:20 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-09-23 00:00:36 (GMT)
commit3d5c0cc9387b35df47c988fbc0e4379e413d783e (patch)
treec3d039b3acd567422125fde0d616bc492d98a968 /t/test-lib.sh
parent5c7d2cf3d6a059038d8d0bda6a76fa7818a9caa0 (diff)
downloadgit-3d5c0cc9387b35df47c988fbc0e4379e413d783e.zip
git-3d5c0cc9387b35df47c988fbc0e4379e413d783e.tar.gz
git-3d5c0cc9387b35df47c988fbc0e4379e413d783e.tar.bz2
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>
Diffstat (limited to 't/test-lib.sh')
-rwxr-xr-xt/test-lib.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh
index e262933..e75ad5f 100755
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -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 ! *"