1
0
mirror of https://github.com/git/git.git synced 2024-11-19 00:53:53 +01:00

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>
This commit is contained in:
Jeff King 2008-03-12 17:38:31 -04:00 committed by Junio C Hamano
parent 53a5b443b4
commit cde2ed25ad

@ -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/-*\$//"
}