Thorsten Glaser <t...@mirbsd.de> wrote: |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
|Running 'bash t.sh' shows… | |au |au |au |after zap |au |au |au |au |au [ au] |exit |au | |… weirdly enough, but this is hardly consistent with ..consistency was what i had in mind. |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). I would prefer seeing a "stack recursion limit exceeded" or similar before SIGSEGV happens because of recursive functions, but it is possibly no good if mksh would be different. --steffen