From: Avery Pennarun Date: Tue, 5 Jan 2010 17:11:27 +0000 (-0500) Subject: test-sh: don't truncate stderr. X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=b517210f27ab179ae1d7826eea665e413d50dd38;p=packages%2Fb%2Fbup.git test-sh: don't truncate stderr. Normally you wouldn't notice this problem, unless you tried to run: make test >&test.out and found that it was full of NUL characters. Oops. --- diff --git a/test-sh b/test-sh index 35c2f48..0cb8682 100755 --- a/test-sh +++ b/test-sh @@ -35,7 +35,7 @@ diff -u testfile2 out2c.tmp git repack -Ad git prune (cd "$TOP/t/sampledata" && bup save -vvn master .) || exit 1 - n=$(git fsck --full --strict 2>&1 | tee /dev/stderr | wc -l) + n=$(git fsck --full --strict 2>&1 | tee -a /dev/stderr | wc -l) if [ "$n" != 0 ]; then echo "git fsck error." exit 5