LC_CTYPE or LC_ALL set. Define it and LANGUAGE before the first "sort" call.
> $tmp/a/f
> $tmp/a/b/g
+LANGUAGE=C
+export LANGUAGE
+LC_ALL=C
+export LC_ALL
+
# FIXME: if this fails, it's a framework failure
cat <<EOF | sort > $tmp/$test.E
removing all entries of directory $tmp/a
removing the directory itself: $tmp/a
EOF
-LANGUAGE=C
-export LANGUAGE
-LANG=C
-export LANG
-
# Note that both the expected output (above) and the actual output lines
# are sorted, because directory entries may be processed in arbitrary order.
fail=0