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>
This commit is contained in:

committed by
Junio C Hamano

parent
df5e91fc2c
commit
6ecfd91df5
@ -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 &&
|
||||
|
Reference in New Issue
Block a user