mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-03-17 18:35:11 +02:00
20 lines
336 B
Bash
Executable File
20 lines
336 B
Bash
Executable File
#!/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
|
|
|
|
exit $fail
|