From: usa@... Date: 2016-03-25T08:22:14+00:00 Subject: [ruby-core:74547] [Ruby trunk Bug#11969] [PATCH] IRB: Final newline missing in truncated backtraces Issue #11969 has been updated by Usaku NAKAMURA. Backport changed from 2.1: REQUIRED, 2.2: REQUIRED, 2.3: REQUIRED to 2.1: DONE, 2.2: REQUIRED, 2.3: REQUIRED ruby_2_1 r54263 merged revision(s) 53943. ---------------------------------------- Bug #11969: [PATCH] IRB: Final newline missing in truncated backtraces https://bugs.ruby-lang.org/issues/11969#change-57674 * Author: Stefan Daschek * Status: Closed * Priority: Normal * Assignee: Keiju Ishitsuka * ruby -v: 2.3.0 * Backport: 2.1: DONE, 2.2: REQUIRED, 2.3: REQUIRED ---------------------------------------- If IRB shows a backtrace that gets truncated because of `back_trace_limit`, the last line of the backtrace does not end with a newline. Steps to reproduce: ~~~ $ irb -f --back-trace-limit 1 irb(main):001:0> foo ~~~ Actual output: ~~~ NameError: undefined local variable or method `foo' for main:Object Did you mean? fork from (irb):1 from /Users/stefan/.rbenv/versions/2.3.0/bin/irb:11:in `
'irb(main):002:0> ~~~ Expected output: ~~~ NameError: undefined local variable or method `foo' for main:Object Did you mean? fork from (irb):1 from /Users/stefan/.rbenv/versions/2.3.0/bin/irb:11:in `
' irb(main):002:0> ~~~ Tested with Ruby 2.3.0, but this seems to affect older versions as well. -- https://bugs.ruby-lang.org/ Unsubscribe: