1 2 3 4 5
# redirects to closed descriptors should not leave these descriptors # open afterwards echo TEST 9>/dev/null echo MUST ERROR OUT >&9 echo "Output to fd#9: $?"