1
# make sure process substitution runs the exit trap
2
[[ -n $(< <(trap "cat /dev/fd/0" EXIT)) ]] <<<works && echo works || echo "fail :("
4
read foo < <(trap "echo bar" EXIT)
7
cat <(trap "echo bar" EXIT)
9
trap "echo bar" EXIT #should proc subst inherit this?
10
cat <(echo foo ; exit 0;)
15
cat <(echo foo; trap "echo bar" EXIT)
17
trap "echo bar" EXIT #should proc subst inherit this?