* Mac OS X 10.5 compatibility: `echo -n foo' suddenly prints `-n foo'

instead of `foo' without a newline (with /bin/sh, not /bin/bash,
  even though /bin/sh is also bash...).  So use printf instead.
This commit is contained in:
Eelco Dolstra 2007-12-14 14:08:09 +00:00
parent 30e4653783
commit 485d71c54a
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
source common.sh
try () {
echo -n "$2" > $TEST_ROOT/vector
printf "%s" "$2" > $TEST_ROOT/vector
hash=$($nixhash $EXTRA --flat --type "$1" $TEST_ROOT/vector)
if test "$hash" != "$3"; then
echo "hash $1, expected $3, got $hash"