diff --git a/bin/sh/trap.c b/bin/sh/trap.c index ba643d3485df..79444ad1bc10 100644 --- a/bin/sh/trap.c +++ b/bin/sh/trap.c @@ -526,11 +526,13 @@ exitshell_savedstatus(void) */ evalskip = 0; trap[0] = NULL; + FORCEINTON; evalstring(p, 0); } } if (!setjmp(loc2.loc)) { handler = &loc2; /* probably unnecessary */ + FORCEINTON; flushall(); #if JOBS setjobctl(0);