1 2bad=0 3for i in 0 1 2 3; do 4 for j in 0 1 2 3 4 5 6 7; do 5 for k in 0 1 2 3 4 5 6 7; do 6 case $i$j$k in 7 000) continue ;; 8 esac 9 set -- "$(printf \\$i$j$k@)" 10 set -- "${1%@}" 11 ff= 12 for f in /dev/null /dev/zero /; do 13 if [ -e "$f" ] && [ ! -e "$f$1" ]; then 14 ff=$f 15 fi 16 done 17 [ -n "$ff" ] || continue 18 if { true <$ff$1; } 2>/dev/null; then 19 echo "Bad: $i$j$k ($ff)" >&2 20 : $((bad += 1)) 21 fi 22 done 23 done 24done 25exit $((bad ? 2 : 0)) 26