the use of 'tr' in the test suite isn't really portable

Some versions of 'tr' only accept octal codes if entered with three digits,
and therefor misinterpret the '\0' in the test suite.

Some versions of 'tr' reject the (needless) use of character classes.

Signed-off-by: H.Merijn Brand <h.m.brand@xs4all.nl>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
H.Merijn Brand
2007-12-17 23:28:46 +01:00
committed by Junio C Hamano
parent 68e6a4f80d
commit 3175b0cfc1
11 changed files with 18 additions and 18 deletions

View File

@ -24,10 +24,10 @@ git update-index --add --remove file1 file2 file4
git-commit -m 'Initial Version' 2>/dev/null
git-checkout -b binary
tr 'x' '\0' <file1 >file3
tr 'x' '\000' <file1 >file3
cat file3 >file4
git add file2
tr '\0' 'v' <file3 >file1
tr '\000' 'v' <file3 >file1
rm -f file2
git update-index --add --remove file1 file2 file3 file4
git-commit -m 'Second Version'