From: aycabta@... Date: 2020-02-24T14:58:38+00:00 Subject: [ruby-core:97250] [Ruby master Bug#16647] Redefining $/ causes irb to misbehave Issue #16647 has been updated by aycabta (aycabta .). Status changed from Open to Closed It was a problem with Reline. I fixed it by https://github.com/ruby/reline/pull/129. > My personal opinion is we should deprecate all these variables affecting default separators, > they tend to break any non-trivial program, not just IRB, and explicit seems always clearer. I think so, but...maybe, so many beginners use IRB to check Ruby's features. It's just my opinion, and it was easy to fix. So I fixed it for beginners. > hanging these variables is deprecated now, and it shows a warning Yes, @nobu said "I forgot it (#14240) to create Pull Request (https://github.com/ruby/ruby/pull/2920) even I created a branch." after I talked about this issue (#16647) to @nobu. I'll remove the fix of Reline after the global variables are completely removed. ---------------------------------------- Bug #16647: Redefining $/ causes irb to misbehave https://bugs.ruby-lang.org/issues/16647#change-84367 * Author: mehagar (Michael Hagar) * Status: Closed * Priority: Normal * ruby -v: ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-darwin19] * Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN ---------------------------------------- If I start irb and then do: ``` ruby $/ = "asdf" ``` then every character I type shows a newline on the irb console. Previous versions of ruby do not have this behavior, and it is annoying. -- https://bugs.ruby-lang.org/ Unsubscribe: