From: "kou (Kouhei Sutou)" Date: 2021-12-02T02:02:33+00:00 Subject: [ruby-core:106375] [Ruby master Bug#18378] Parsing CSV files from ARGF not working correctly anymore (it stopped working starting from Ruby 2.5) Issue #18378 has been updated by kou (Kouhei Sutou). Status changed from Open to Third Party's Issue Could you report this to https://github.com/ruby/csv ? ---------------------------------------- Bug #18378: Parsing CSV files from ARGF not working correctly anymore (it stopped working starting from Ruby 2.5) https://bugs.ruby-lang.org/issues/18378#change-95011 * Author: Fravadona (Frava Dona) * Status: Third Party's Issue * Priority: Normal * ruby -v: 2.5 to current * Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN ---------------------------------------- Hi everyone, I noticed that, starting from Ruby 2.5, parsing multiple CSV files from `ARGF` stops after reading first *input*.
For example, the simple one-liner: ``` shell ruby -r csv -e 'CSV.new(ARGF).each{|row| p row}' file1.csv file2.csv ``` Only processes the content of `file1.csv` -- https://bugs.ruby-lang.org/ Unsubscribe: