diff options
author | H.Merijn Brand <h.m.brand@xs4all.nl> | 2007-12-17 23:28:46 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-12-17 20:49:18 -0800 |
commit | 3175b0cfc1392de1ff00c01796f85b92df317cc8 (patch) | |
tree | 35249d47fa8f8864d3bc1a96eb4b1aa82dac95c6 /t/t1300-repo-config.sh | |
parent | 68e6a4f80d4bea2d281c30fa2bbcd4968b0ccc4e (diff) | |
download | git-3175b0cfc1392de1ff00c01796f85b92df317cc8.tar.gz git-3175b0cfc1392de1ff00c01796f85b92df317cc8.tar.xz |
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>
Diffstat (limited to 't/t1300-repo-config.sh')
-rwxr-xr-x | t/t1300-repo-config.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t1300-repo-config.sh b/t/t1300-repo-config.sh index 1d2bf2c06..e894629e7 100755 --- a/t/t1300-repo-config.sh +++ b/t/t1300-repo-config.sh @@ -591,12 +591,12 @@ Qsection.sub=section.val4 Qsection.sub=section.val5Q EOF -git config --null --list | tr '[\000]' 'Q' > result +git config --null --list | tr '\000' 'Q' > result echo >>result test_expect_success '--null --list' 'cmp result expect' -git config --null --get-regexp 'val[0-9]' | tr '[\000]' 'Q' > result +git config --null --get-regexp 'val[0-9]' | tr '\000' 'Q' > result echo >>result test_expect_success '--null --get-regexp' 'cmp result expect' |