Harald van Dijk <harald@xxxxxxxxxxx> wrote: > > "Almost every other shell"? In the shells I tested, other than dash, > it's evenly divided: four print nothing (bash, ksh, mksh, yash), four > print BUG (bosh, pdksh, posh, zsh). Which ones are you testing? > > To me, the standard is unclear on what the output should be: if at the > time exit is executed, traps are reset, can what's being executed still > be considered a trap action? > > It's a nice test case whatever the correct result. I don't disagree with your reasoning. However, I'm not going to change existing behaviour unless it is clearly wrong. Cheers, -- Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt