Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buggy job control #4

Open
1 of 3 tasks
mgree opened this issue Jun 12, 2019 · 3 comments
Open
1 of 3 tasks

Buggy job control #4

mgree opened this issue Jun 12, 2019 · 3 comments
Labels
bug Something isn't working

Comments

@mgree
Copy link
Owner

mgree commented Jun 12, 2019

There are some bugs in interactive job control.

@mgree mgree added the bug Something isn't working label Jun 12, 2019
@mgree
Copy link
Owner Author

mgree commented Jun 12, 2019

  • 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
Copy link
Owner Author

mgree commented Jun 13, 2019

  • 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
Copy link
Owner Author

mgree commented Jun 13, 2019

  • smoosh -c 'echo | smoosh -i' is blocking on taking the foreground. everything else seems to be okay in 3fc4dd4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant