mgree/smoosh

Buggy job control

mgree opened this issue · 3 comments

mgree commented

There are some bugs in interactive job control.

mgree commented
  • Break from loops, etc., when a command exits due to SIGINT (status 130) (cf. dash)
  • INTON/INTOFF à la dash to get correct command editing behavior

If sh receives a SIGINT signal in command mode (whether generated
by typing the interrupt character or by other means), it shall
terminate command line editing on the current command line,
reissue the prompt on the next line of the terminal, and reset the
command history (see fc) so that the most recently executed
command is the previous command (that is, the command that was
being edited when it was interrupted is not re-entered into the
history).

mgree commented
  • echo hi | sleep 3, ^Z, fg doesn't work. Some bugs fixed in 7a75e15 (wasn't properly simulating killpg), but we're not all the way there yet.
mgree commented
  • smoosh -c 'echo | smoosh -i' is blocking on taking the foreground. everything else seems to be okay in 3fc4dd4