Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2008-03-13 00:38:31 +0300
committerJunio C Hamano <gitster@pobox.com>2008-03-13 10:57:53 +0300
commitcde2ed25ad764260aaa08a9ed3fbd997723c6b76 (patch)
treedafe3f7c19e8497d3f1d17672f36bb369d88eaf0
parent53a5b443b4b3d5beb102615f402e0e4da5ba9179 (diff)
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>
-rwxr-xr-xt/t6000lib.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/t/t6000lib.sh b/t/t6000lib.sh
index 180633e1e0..b69f7c4d11 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/-*\$//"
}