diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2007-12-14 14:08:09 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2007-12-14 14:08:09 +0000 |
commit | 485d71c54a323e967ef4f0b4c5ebf97e97d7d725 (patch) | |
tree | aeb525d0101fed9514ba0d38f177fd3074c4b825 | |
parent | 30e4653783096c8349ef12512df12f0829764e65 (diff) |
* 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.
-rw-r--r-- | tests/hash.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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" |