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

Closed
bobjalex opened this Issue Oct 25, 2013 · 1 comment

Comments

Projects
None yet
2 participants
@bobjalex
Copy link

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
nil

jruby -e "print(*[])"
nil

jruby -e "print(123)"
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

@enebo

This comment has been minimized.

Copy link
Member

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
You can’t perform that action at this time.