From 4f6b47eb0b0ea76c53f94409bc34eafa596d3706 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 14 Mar 2003 06:50:28 +0000 Subject: sort du output, in case f1 and f2 are listed in a different order --- tests/du/hard-link | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/du') diff --git a/tests/du/hard-link b/tests/du/hard-link index 6e0eaade9..5de5d81da 100755 --- a/tests/du/hard-link +++ b/tests/du/hard-link @@ -34,17 +34,17 @@ du -a --exclude=sub dir \ | sed 's/^[0-9][0-9]* //' > out || fail=1 echo === >> out du -a --exclude=sub --count-links dir \ - | sed 's/^[0-9][0-9]* //' >> out || fail=1 + | sed 's/^[0-9][0-9]* //' | sort -r >> out || fail=1 cat <<\EOF > exp dir/f1 dir === -dir/f1 dir/f2 +dir/f1 dir EOF cmp out exp || fail=1 -test $fail = 1 && diff out exp 2> /dev/null +test $fail = 1 && diff -u out exp 2> /dev/null (exit $fail); exit $fail -- cgit v1.2.3-70-g09d2