blob: 6de6d0fe85fe98e73a45d9ebb68e1304f4d4d689 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/bin/sh
# Make sure `du d/1 d/2' works.
# That command failed with du from fileutils-4.0q.
if test "$VERBOSE" = yes; then
set -x
du --version
fi
tmp=du2-$$
trap 'status=$?; rm -rf $tmp && exit $status' 0
trap 'exit $?' 1 2 13 15
mkdir -p $tmp/1 $tmp/2
test -d $tmp || fail=1
du $tmp/1 $tmp/2 > /dev/null || fail=1
# Make sure `du . $tmp' and `du .. $tmp' work.
# These would fail prior to fileutils-4.0y.
du . $tmp > /dev/null || fail=1
du .. $tmp > /dev/null || fail=1
exit $fail
|