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.tokkee.org/?a=commitdiff_plain;h=cde2ed25ad764260aaa08a9ed3fbd997723c6b76;p=git.git 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 --- 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/-*\$//" }