# make sure process substitution runs the exit trap [[ -n $(< <(trap "tee /dev/fd/3" EXIT)) ]] 3>&1 <<