[ruby-cvs:65460] kazu:r58288 (trunk): io.c: ARGF.file returns $stdin instead of STDIN [ci skip]

kazu at ruby-lang.org kazu at ruby-lang.org
Sun Apr 9 20:53:53 JST 2017


kazu	2017-04-09 20:53:53 +0900 (Sun, 09 Apr 2017)

  New Revision: 58288

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58288

  Log:
    io.c: ARGF.file returns $stdin instead of STDIN [ci skip]
    
    For example:
    `ruby -e '$stdin=open(IO::NULL);p [STDIN,$stdin,ARGF.file]'`
    prints `[#<IO:<STDIN>>, #<File:/dev/null>, #<File:/dev/null>]`

  Modified files:
    trunk/io.c


More information about the ruby-cvs mailing list