gash/tests/43-trap-subshell.sh

6 lines
84 B
Bash

trap "rm /tmp/bar$$" 0
echo foo > /tmp/bar$$
cat /tmp/bar$$
(exit 0)
cat /tmp/bar$$