summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 53a5b44)
raw | patch | inline | side by side (parent: 53a5b44)
author | Jeff King <peff@peff.net> | |
Wed, 12 Mar 2008 21:38:31 +0000 (17:38 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 13 Mar 2008 07:57:53 +0000 (00:57 -0700) |
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>
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>
t/t6000lib.sh | patch | blob | history |
diff --git a/t/t6000lib.sh b/t/t6000lib.sh
index 180633e1e0e37c59eeaa571ad7f7b292f35415ec..b69f7c4d1100ec7254d32665040e282a2fa97c2a 100755 (executable)
--- a/t/t6000lib.sh
+++ b/t/t6000lib.sh
# 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/-*\$//"
}