# A TMPDIR too long for the here-document temp path falls back to a pipe # instead of writing a truncated name. long=$(awk 'BEGIN { for (i = 0; i < 5000; i++) printf "x" }') TMPDIR=/$long cat <