Remove all files in inner loop.
Otherwise, with a touch program that fails on unwritable files,
(this happens at least on linux-2.2.20) a -w file left behind
from a previous iteration could cause a spurious test failure.
for file in $files; do
# Test for misparsing args by creating all $files but $file.
# chmod has a bug if it succeeds even though $file is absent.
- rm -f -- $files && touch -- $files && rm -- $file || framework_failure=1
+ rm -f -- $all_files && touch -- $files && rm -- $file \
+ || framework_failure=1
chmod $args 2>/dev/null && fail=1
done
;;