blob: 7f3380b41184a3f87d7b46376110e2d974be2a02 [file] [log] [blame]
Chet Rameyac50fba2014-02-26 09:36:43 -05001# make sure process substitution runs the exit trap
2[[ -n $(< <(trap "cat /dev/fd/0" EXIT)) ]] <<<works && echo works || echo "fail :("
3
4read foo < <(trap "echo bar" EXIT)
5echo $foo
6
7cat <(trap "echo bar" EXIT)
8
9trap "echo bar" EXIT #should proc subst inherit this?
10cat <(echo foo ; exit 0;)
11
12trap - 0
13trap
14
15cat <(echo foo; trap "echo bar" EXIT)
16
17trap "echo bar" EXIT #should proc subst inherit this?
18cat <(echo foo)