}
function check_hierarchy {
- ( find $1 -type d -printf 'd %p\n' ; find $1 -type f -printf 'f %p\n' ; find $1 -type b -printf 'b %p\n' ; find $1 -type c -printf 'c %p\n' ; find $1 -type l -printf 'l %p\n') | sort > /tmp/check-$$
+ (
+ find $1 -type d -printf 'd %p\n'
+ find $1 -type f -printf 'f %p\n'
+ find $1 -type b -printf 'b %p\n'
+ find $1 -type c -printf 'c %p\n'
+ find $1 -type l -printf 'l %p\n'
+ ) | sort > /tmp/check-$$
grep -v '^$' | sort | diff -u - /tmp/check-$$
ERR=$?
rm -f /tmp/check-$$