From: Jeff King Date: Tue, 11 Mar 2008 17:40:45 +0000 (-0400) Subject: t0021: tr portability fix for Solaris X-Git-Tag: v1.5.5-rc0~2^2~15 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7339eb082343df556c27fb0df5dd36a21714284e;p=git.git t0021: tr portability fix for Solaris Solaris' /usr/bin/tr doesn't seem to like multiple character ranges in brackets (it simply prints "Bad string"). Instead, let's just enumerate the transformation we want. Signed-off-by: Jeff King Signed-off-by: Junio C Hamano --- diff --git a/t/t0021-conversion.sh b/t/t0021-conversion.sh index cb860296e..8fc39d77c 100755 --- a/t/t0021-conversion.sh +++ b/t/t0021-conversion.sh @@ -5,7 +5,9 @@ test_description='blob conversion via gitattributes' . ./test-lib.sh cat <<\EOF >rot13.sh -tr '[a-zA-Z]' '[n-za-mN-ZA-M]' +tr \ + 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' \ + 'nopqrstuvwxyzabcdefghijklmNOPQRSTUVWXYZABCDEFGHIJKLM' EOF chmod +x rot13.sh