From: shugo@... Date: 2015-11-25T01:07:19+00:00 Subject: [ruby-core:71668] [Ruby trunk - Bug #11738] [Open] ARGF.readpartial raises a wrong exception Issue #11738 has been reported by Shugo Maeda. ---------------------------------------- Bug #11738: ARGF.readpartial raises a wrong exception https://bugs.ruby-lang.org/issues/11738 * Author: Shugo Maeda * Status: Open * Priority: Normal * Assignee: * ruby -v: ruby 2.3.0dev (2015-11-09 trunk 52500) [x86_64-linux] * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN ---------------------------------------- ARGF.readpartial raises a RuntimeError when EOF is detected more than twice: ``` lexington:ruby$ cat t.rb p ARGF.readpartial(16) rescue nil p ARGF.readpartial(16) lexington:ruby$ ruby t.rb /dev/null t.rb:2:in `readpartial': can't modify frozen NilClass (RuntimeError) from t.rb:2:in `
' lexington:ruby$ ``` An EOFError is expected. -- https://bugs.ruby-lang.org/