blob: 437c5e7c353c8ff357bbdfe3c9209189383269ef (
plain)
1
2
3
4
5
6
7
8
|
# 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 <<TXT
hi
TXT
echo "status=$?"
|