From: Jeff King Date: Wed, 12 Mar 2008 21:38:31 +0000 (-0400) Subject: t6000lib: tr portability fix X-Git-Tag: v1.5.5-rc0~5^2~6 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/cde2ed25ad764260aaa08a9ed3fbd997723c6b76?ds=inline;hp=--cc 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 Signed-off-by: Junio C Hamano --- cde2ed25ad764260aaa08a9ed3fbd997723c6b76 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/-*\$//" }