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

Stop echoing or storing command calls' nil return value #972

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

st0012
Copy link
Member

@st0012 st0012 commented Jun 16, 2024

In #934, we changed command calls to return nil only. This PR improves the behaviour even further by:

  • Not echoing the nil returned by command calls
  • Not overriding previous return value stored in _ with the nil from commands

In #934, we changed command calls to return nil only. This PR improves
the behaviour even further by:

- Not echoing the `nil` returned by command calls
- Not overriding previous return value stored in `_` with the
  `nil` from commands
@st0012 st0012 added the enhancement New feature or request label Jun 16, 2024
@st0012 st0012 self-assigned this Jun 16, 2024
@tompng tompng merged commit c844176 into master Jun 18, 2024
59 checks passed
@tompng tompng deleted the stop-enchoing-command-nils branch June 18, 2024 15:15
matzbot pushed a commit to ruby/ruby that referenced this pull request Jun 18, 2024
(ruby/irb#972)

In #934, we changed command calls to return nil only. This PR improves
the behaviour even further by:

- Not echoing the `nil` returned by command calls
- Not overriding previous return value stored in `_` with the
  `nil` from commands

ruby/irb@c844176842
kachick added a commit to kachick/irb-power_assert that referenced this pull request Jul 8, 2024
kachick added a commit to kachick/irb-power_assert that referenced this pull request Jul 8, 2024
* Update irb requirement from 1.13.2 to 1.14.0

Updates the requirements on [irb](https://github.com/ruby/irb) to permit the latest version.
- [Release notes](https://github.com/ruby/irb/releases)
- [Commits](ruby/irb@v1.13.2...v1.14.0)

---
updated-dependencies:
- dependency-name: irb
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* Suppress warning: already initialized constant IRB::PowerAssert::VERSION with conflicted with irbrc

Referred to https://github.com/ruby/irb/blob/c1be413c7457099bd3f676a0ea97171c0e8fbc30/bin/console

* Follow stopped echo nil in latest irb

ruby/irb#972

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kenichi Kamiya <kachick1@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

2 participants