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

"print" called with no arguments prints "nil" #1167

bobjalex opened this issue Oct 25, 2013 · 1 comment

"print" called with no arguments prints "nil" #1167

bobjalex opened this issue Oct 25, 2013 · 1 comment


Copy link

@bobjalex bobjalex commented Oct 25, 2013

Prints "nil" when no arguments provided. Works fine when >0 args are provided.

C-Ruby prints nothing when no args.

Using version 1.7.6, Windows Vista 32-bit.

jruby -e print

jruby -e "print(*[])"

jruby -e "print(123)"

ruby -e print

ruby -e "print(*[])"

I found this due to a mistake in my program -- not sure why anyone would code this on purpose. :-)
Does this set a record for the most trivial bug yet??

enebo added a commit that referenced this issue Oct 26, 2013
Copy link

@enebo enebo commented Oct 26, 2013

It is really unlikely to ever break anything but it was simple to fix. You might have discovered the most trivial bug but thanks for reporting it nonetheless :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants