diff options
author | Brian Gernhardt <benji@silverinsanity.com> | 2008-10-31 01:09:13 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-10-31 21:38:48 -0700 |
commit | 6ecfd91df5ec462aeded967c9ad21912c249f96e (patch) | |
tree | faa7135734d9905f6cb430abe9561b5f771c0250 /t/t4030-diff-textconv.sh | |
parent | df5e91fc2c95e051744ec9b9de66869d2b323037 (diff) | |
download | git-6ecfd91df5ec462aeded967c9ad21912c249f96e.tar.gz |
Avoid using non-portable `echo -n` in tests.
Expecting echo to recognise -n is a BSDism. Using printf is far more
portable.
Discovered on OS X 10.5.5 in t4030-diff-textconv.sh and changed in all
the test scripts.
Signed-off-by: Brian Gernhardt <benji@silverinsanity.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4030-diff-textconv.sh')
-rwxr-xr-x | t/t4030-diff-textconv.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t4030-diff-textconv.sh b/t/t4030-diff-textconv.sh index 1b0964843e..3aed1bbdfe 100755 --- a/t/t4030-diff-textconv.sh +++ b/t/t4030-diff-textconv.sh @@ -105,7 +105,7 @@ index ad8b3d2..67be421 EOF # make a symlink the hard way that works on symlink-challenged file systems test_expect_failure 'textconv does not act on symlinks' ' - echo -n frotz > file && + printf frotz > file && git add file && git ls-files -s | sed -e s/100644/120000/ | git update-index --index-info && |