Project

General

Profile

Actions

Bug #1748

closed

Kernel.puts(nil) => "\n" on 1.9; "nil\n" on 1.8

Added by runpaint (Run Paint Run Run) almost 15 years ago. Updated about 13 years ago.

Status:
Rejected
Target version:
-
ruby -v:
ruby 1.9.2dev (2009-07-08 trunk 23995) [i686-linux]
Backport:
[ruby-core:24222]

Description

=begin
Is this intentional?

$ ruby -ve 'Kernel.puts(nil)'
ruby 1.9.2dev (2009-07-08 trunk 23995) [i686-linux]

$ ruby8 -ve 'Kernel.puts(nil)'
ruby 1.8.8dev (2009-07-01) [i686-linux]
nil
=end

Actions

Also available in: Atom PDF

Like0
Like0