aboutsummaryrefslogtreecommitdiff
path: root/t/t0021-conversion.sh
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2008-03-11 13:40:45 -0400
committerJunio C Hamano <gitster@pobox.com>2008-03-11 21:14:59 -0700
commit7339eb082343df556c27fb0df5dd36a21714284e (patch)
tree3c2804931863a46c52052f0ac4ce9f4904160d01 /t/t0021-conversion.sh
parentfc99469a2b786676ffe48d5966d71cea3613b716 (diff)
downloadgit-7339eb082343df556c27fb0df5dd36a21714284e.tar.gz
git-7339eb082343df556c27fb0df5dd36a21714284e.tar.xz
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 <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t0021-conversion.sh')
-rwxr-xr-xt/t0021-conversion.sh4
1 files changed, 3 insertions, 1 deletions
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