diff options
author | Jim Meyering <jim@meyering.net> | 2003-02-21 08:02:33 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-02-21 08:02:33 +0000 |
commit | 85cbe110d43a3b0b66e3e4e71b9288a20a119a54 (patch) | |
tree | 35f90d80585037d5a192dc982e465b1e861863f7 /tests/du | |
parent | f1f8ca7ddc1dfb84293ea10f0621a65ab161944c (diff) | |
download | coreutils-85cbe110d43a3b0b66e3e4e71b9288a20a119a54.tar.xz |
use printf, not echo
test -b
Diffstat (limited to 'tests/du')
-rwxr-xr-x | tests/du/basic | 10 |
1 files changed, 8 insertions, 2 deletions
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 |