summaryrefslogtreecommitdiffstats
path: root/tests/exec11.sub
blob: 9631c672328d265952044e2e48895c511bf4a15c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
trap 'echo USR1 $BASHPID' USR1
trap 'echo foo $BASH_SUBSHELL' 0

trap | cat
echo between
( trap )
echo between 2
{ trap; } | cat

( echo in subshell: $BASH_SUBSHELL )
( echo in subshell pipeline: $BASH_SUBSHELL ) | cat

{ echo group pipeline: $BASH_SUBSHELL;
  trap 'echo EXIT-group.$BASH_SUBSHELL' EXIT; } | cat