1 2T=`mktemp -d "${TMPDIR:-/tmp}/sh-test.XXXXXXXX"` || exit 3trap 'rm -rf "${T}"' 0 4PATH=$T:$PATH 5ls -ld . >/dev/null 6cat <<EOF >"$T/ls" 7: 8EOF 9chmod 755 "$T/ls" 10PATH=$PATH 11ls -ld . 12