]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
use printf, not echo
authorJim Meyering <jim@meyering.net>
Fri, 21 Feb 2003 08:02:33 +0000 (08:02 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 21 Feb 2003 08:02:33 +0000 (08:02 +0000)
test -b

tests/du/basic

index 121ef0ebbca2e01bb386966f60c2fff71269b3ed..d9ca2ec39007cebd292945693fe513d17ca7d869 100755 (executable)
@@ -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