yash-rs icon indicating copy to clipboard operation
yash-rs copied to clipboard

Prevent exit when a job is suspended

Open magicant opened this issue 4 months ago • 0 comments
trafficstars

Many existing shells refuses to exit when they have a suspended job. It would be helpful for yash-rs to support this behavior.

This behavior is extension to POSIX.

Todos:

  • [ ] Prevent exit on end of input
  • [ ] Prevent exit in the exit built-in
  • [ ] Add the -f option to the exit built-in

Questions:

  • [ ] Should this happen only if interactive is set?
    • This should never happen in subshells.
  • [ ] Should this happen only if monitor is set?

magicant avatar Jul 14 '25 14:07 magicant