Steffen Nurpmeso dixit:

>An interactive shell or '/usr/bin/mksh -c "exec ./t.sh"' limits
>the storm in the same way that bash(1) does

Does it? Where?

Running 'bash t.sh' shows…

au
au
au
after zap
au
au
au
au
au
exit
au

… weirdly enough, but this is hardly consistent with
the documentation of the trap builtin. And you cannot
portably catch stack underruns anyway (which is what
happens here, just like if you have a function that
recurses infinitely).

bye,
//mirabilos
-- 
“It is inappropriate to require that a time represented as
 seconds since the Epoch precisely represent the number of
 seconds between the referenced time and the Epoch.”
        -- IEEE Std 1003.1b-1993 (POSIX) Section B.2.2.2

Reply via email to