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>
Jeff King committed
Mar 12, 2008 at 17:38 UTC
cde2ed25ad764260aaa08a9ed3fbd997723c6b76
1 file changed
+4
-1
t/t6000lib.sh
+4
-1
@@ -97,7 +97,10 @@ check_output()
97
# from front and back.
98
name_from_description()
99
{
100
- tr "'" '-' | tr '~`!@#$%^&*()_+={}[]|\;:"<>,/? ' '-' | tr -s '-' | tr '[A-Z]' '[a-z]' | sed "s/^-*//;s/-*\$//"
100
+ tr "'" '-' |
101
+ tr '~`!@#$%^&*()_+={}[]|\;:"<>,/? ' \
102
+ '------------------------------' |
103
+ tr -s '-' | tr '[A-Z]' '[a-z]' | sed "s/^-*//;s/-*\$//"
104
}
105
106