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

Fix exit! command warning and method behavior #868

Merged
merged 2 commits into from
Feb 12, 2024

Conversation

tompng
Copy link
Member

@tompng tompng commented Feb 11, 2024

Delegator warning for irb(main):001> chws 1 can be suppressed.
There was a workaround for exit command. Add workaround for exit!.

Just like #298, rescue UncaughtThrowError part should emulate the original method. In this case, we should call Kernel.exit!

Copy link
Member

@st0012 st0012 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

@st0012 st0012 merged commit 372bc59 into ruby:master Feb 12, 2024
29 checks passed
matzbot pushed a commit to ruby/ruby that referenced this pull request Feb 12, 2024
(ruby/irb#868)

* Fix exit! command warning and method behavior

* Remove arg(0) from Kernel.exit and Kernel.exit!

ruby/irb@372bc59bf5
@tompng tompng deleted the exit_bang_after branch February 12, 2024 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants