Change debconf text to claim that the default /bin/sh is dash instead of bash. close...
[posh.git] / tests / trap.t
blob47651db7571b11c3235db8367f4e8890bca1dadb
2 name: trap-2
3 description:
4         Check if EXIT trap is executed for sub shells.
5 stdin:
6         trap 'echo parent exit' EXIT
7         echo start
8         (echo A; echo A last)
9         echo B
10         (echo C; trap 'echo sub exit' EXIT; echo C last)
11         echo parent last
12 expected-stdout: 
13         start
14         A
15         A last
16         B
17         C
18         C last
19         sub exit
20         parent last
21         parent exit
22 ---
24 name: trap-3
25 description:
26         Check that trap errors when an action is given with no conditions
27 stdin:
28         trap 0
29 expected-stderr-pattern:
30         /.*no signals.*/
31 expected-exit: e != 0
32 ---
34 name: trap-4
35 description:
36         Check that trap errors when a lowercase signal name is given
37 stdin:
38         trap 'echo hi' exit
39 expected-stderr-pattern:
40         /.*bad signal.*/
41 expected-exit: e != 0
42 ---