aboutsummaryrefslogtreecommitdiff
path: root/t/t6000lib.sh
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2008-03-12 17:38:31 -0400
committerJunio C Hamano <gitster@pobox.com>2008-03-13 00:57:53 -0700
commitcde2ed25ad764260aaa08a9ed3fbd997723c6b76 (patch)
treedafe3f7c19e8497d3f1d17672f36bb369d88eaf0 /t/t6000lib.sh
parent53a5b443b4b3d5beb102615f402e0e4da5ba9179 (diff)
downloadgit-cde2ed25ad764260aaa08a9ed3fbd997723c6b76.tar.gz
git-cde2ed25ad764260aaa08a9ed3fbd997723c6b76.tar.xz
t6000lib: tr portability fix
Some versions of tr complain if the number of characters in both sets isn't the same. So here we must manually expand the dashes in set2. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t6000lib.sh')
-rwxr-xr-xt/t6000lib.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/t/t6000lib.sh b/t/t6000lib.sh
index 180633e1e..b69f7c4d1 100755
--- a/t/t6000lib.sh
+++ b/t/t6000lib.sh
@@ -97,7 +97,10 @@ check_output()
# from front and back.
name_from_description()
{
- tr "'" '-' | tr '~`!@#$%^&*()_+={}[]|\;:"<>,/? ' '-' | tr -s '-' | tr '[A-Z]' '[a-z]' | sed "s/^-*//;s/-*\$//"
+ tr "'" '-' |
+ tr '~`!@#$%^&*()_+={}[]|\;:"<>,/? ' \
+ '------------------------------' |
+ tr -s '-' | tr '[A-Z]' '[a-z]' | sed "s/^-*//;s/-*\$//"
}