* 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:
parent
30e4653783
commit
485d71c54a
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
source common.sh
|
source common.sh
|
||||||
|
|
||||||
try () {
|
try () {
|
||||||
echo -n "$2" > $TEST_ROOT/vector
|
printf "%s" "$2" > $TEST_ROOT/vector
|
||||||
hash=$($nixhash $EXTRA --flat --type "$1" $TEST_ROOT/vector)
|
hash=$($nixhash $EXTRA --flat --type "$1" $TEST_ROOT/vector)
|
||||||
if test "$hash" != "$3"; then
|
if test "$hash" != "$3"; then
|
||||||
echo "hash $1, expected $3, got $hash"
|
echo "hash $1, expected $3, got $hash"
|
||||||
|
|
Loading…
Reference in a new issue