-
-
Notifications
You must be signed in to change notification settings - Fork 164
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
Ctrl-C in command substitution exits parent shell #467
Comments
OK I reproduced this... though my memory of how it works is already fuzzy :-/ In any case, thanks for the report and testing! |
Hm looks like this fell through the cracks, should take another look at it |
andychu
pushed a commit
that referenced
this issue
Jan 21, 2022
Add cases to test/interactive.py to verify it TODO: test that exit codes match bash and other shells. It looks like they use exit code 130 consistently. Addresses issue #467.
andychu
pushed a commit
that referenced
this issue
Jan 26, 2022
This finishes the fix for issue #467. Also fix exit code after parse error -- it is now 2.
Fixed in 0.9.7: https://www.oilshell.org/blog/2022/01/notes-themes.html Thanks for the report! As mentioned in the blog post, I probably subconsciously put this off because we didn't have a good test harness. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Repro steps:
Expected behavior: osh sends interrupt to command substitution, but continues reading input and behaving as an interactive shell (same as bash and dash)
Actual behavior: osh exits completely!
This looks like it was introduced by 1191238, which enables 'Ctrl-C' during command substitions. osh should distinguish between interrupting the substitution and interrupting the parent shell.
The text was updated successfully, but these errors were encountered: