From 485d71c54a323e967ef4f0b4c5ebf97e97d7d725 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 14 Dec 2007 14:08:09 +0000 Subject: [PATCH] * 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. --- tests/hash.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/hash.sh b/tests/hash.sh index b3f3fa5bf..5022ea246 100644 --- a/tests/hash.sh +++ b/tests/hash.sh @@ -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"