• Jeff King's avatar
    more tr portability test script fixes · e85fe4d8
    Jeff King authored
    Dealing with NULs is not always safe with tr. On Solaris,
    incoming NULs are silently deleted by both the System V and
    UCB versions of tr. When converting to NULs, the System V
    version works fine, but the UCB version silently ignores the
    request to convert the character.
    This patch changes all instances of tr using NULs to use
    "perl -pe 'y///'" instead.
    Signed-off-by: default avatarJeff King <peff@peff.net>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
test-sha1.sh 1.86 KB