hush: fix EXIT trap display inside exit trap handler

function                                             old     new   delta
hush_exit                                             84      78      -6

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
This commit is contained in:
Denys Vlasenko
2010-09-12 15:38:04 +02:00
parent 2d8187c139
commit a110c90de2
3 changed files with 45 additions and 4 deletions

View File

@@ -1,2 +1,12 @@
cow
moo
Traps1:
trap -- 'exitfunc' EXIT
Traps2:
trap -- 'echo Should not run' EXIT
Check1: 42
Traps1:
trap -- 'exitfunc' EXIT
Traps2:
trap -- 'echo Should not run' EXIT
Check2: 42