From 85cbe110d43a3b0b66e3e4e71b9288a20a119a54 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 21 Feb 2003 08:02:33 +0000 Subject: use printf, not echo test -b --- tests/du/basic | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'tests/du/basic') diff --git a/tests/du/basic b/tests/du/basic index 121ef0ebb..d9ca2ec39 100755 --- a/tests/du/basic +++ b/tests/du/basic @@ -18,7 +18,7 @@ framework_failure=0 mkdir -p $tmp || framework_failure=1 cd $tmp || framework_failure=1 mkdir -p a/b || framework_failure=1 -echo make-sure-the-file-is-non-empty > a/b/c || framework_failure=1 +printf 'make-sure-the-file-is-non-empty\n' > a/b/c || framework_failure=1 if test $framework_failure = 1; then echo "$0: failure in testing framework" 1>&2 @@ -37,16 +37,22 @@ echo === >> out du -aS a >> out || fail=1 echo === >> out du -s a >> out || fail=1 +echo === >> out +du -abS a >> out || fail=1 cat <<\EOF > exp 4 a/b/c 8 a/b 12 a === 4 a/b/c -8 a/b +4 a/b 4 a === 12 a +=== +32 a/b/c +4096 a/b +4096 a EOF cmp out exp || fail=1 -- cgit v1.2.3-54-g00ecf