ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:115824] [Ruby master Bug#20074] IRB/Pry search up arrow in 3.3 changed behaviour "\e[A": history-search-backward
@ 2023-12-20 21:50 oleg_antonyan (Oleg Antonyan) via ruby-core
  2023-12-21  8:38 ` [ruby-core:115838] " hsbt (Hiroshi SHIBATA) via ruby-core
  2023-12-21  9:47 ` [ruby-core:115839] " oleg_antonyan (Oleg Antonyan) via ruby-core
  0 siblings, 2 replies; 3+ messages in thread
From: oleg_antonyan (Oleg Antonyan) via ruby-core @ 2023-12-20 21:50 UTC (permalink / raw)
  To: ruby-core; +Cc: oleg_antonyan (Oleg Antonyan)

Issue #20074 has been reported by oleg_antonyan (Oleg Antonyan).

----------------------------------------
Bug #20074: IRB/Pry search up arrow in 3.3 changed behaviour "\e[A": history-search-backward
https://bugs.ruby-lang.org/issues/20074

* Author: oleg_antonyan (Oleg Antonyan)
* Status: Open
* Priority: Normal
* ruby -v: ruby 3.3.0rc1 (2023-12-11 master a49643340e) +YJIT [x86_64-linux]
* Backport: 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN
----------------------------------------
In 3.3 since preview 1 this handy readline feature is kind of broken

``` shell
$ cat ~/.inputrc

"\e[A": history-search-backward
"\e[B": history-search-forward
```

It supposed to search history by starting typing substring, you hit up arrow and it brings the line starting from this substring from the history. And it does that, but the problem is when you don't type anything and just hit up arrow it brings the latest history item and places the cursor at the beginning of line. 
Previously (up to 3.2.2) it used to put cursor at the end of the line. This is how it works pretty much everywhere (bash, for example, or in test C program that loops over `readline("> ")`), so the problem is in the way Ruby 3.3+ uses readline, but not readline itself.

openSUSE Timbleweed 64bit kernel 6.6.6-1-default
Ruby 3.3.0-rc1 (installed via rbenv or manually from source tarball - same behavior)
libreadline 8.2 (but tried version 7 with teh same outcome)



-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ruby-core:115838] [Ruby master Bug#20074] IRB/Pry search up arrow in 3.3 changed behaviour "\e[A": history-search-backward
  2023-12-20 21:50 [ruby-core:115824] [Ruby master Bug#20074] IRB/Pry search up arrow in 3.3 changed behaviour "\e[A": history-search-backward oleg_antonyan (Oleg Antonyan) via ruby-core
@ 2023-12-21  8:38 ` hsbt (Hiroshi SHIBATA) via ruby-core
  2023-12-21  9:47 ` [ruby-core:115839] " oleg_antonyan (Oleg Antonyan) via ruby-core
  1 sibling, 0 replies; 3+ messages in thread
From: hsbt (Hiroshi SHIBATA) via ruby-core @ 2023-12-21  8:38 UTC (permalink / raw)
  To: ruby-core; +Cc: hsbt (Hiroshi SHIBATA)

Issue #20074 has been updated by hsbt (Hiroshi SHIBATA).

Status changed from Open to Third Party's Issue

Thanks for your report. Ruby 3.3 will use reline that is readline replacement of pure ruby by default.

Can you reproduce it with `gem install readline-ext`?

Finally, could you file this issue to [the upstream of reline repository](https://github.com/ruby/reline)?

----------------------------------------
Bug #20074: IRB/Pry search up arrow in 3.3 changed behaviour "\e[A": history-search-backward
https://bugs.ruby-lang.org/issues/20074#change-105792

* Author: oleg_antonyan (Oleg Antonyan)
* Status: Third Party's Issue
* Priority: Normal
* ruby -v: ruby 3.3.0rc1 (2023-12-11 master a49643340e) +YJIT [x86_64-linux]
* Backport: 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN
----------------------------------------
In 3.3 since preview 1 this handy readline feature is kind of broken

``` shell
$ cat ~/.inputrc

"\e[A": history-search-backward
"\e[B": history-search-forward
```

It supposed to search history by starting typing substring, you hit up arrow and it brings the line starting from this substring from the history. And it does that, but the problem is when you don't type anything and just hit up arrow it brings the latest history item and places the cursor at the beginning of line. 
Previously (up to 3.2.2) it used to put cursor at the end of the line. This is how it works pretty much everywhere (bash, for example, or in test C program that loops over `readline("> ")`), so the problem is in the way Ruby 3.3+ uses readline, but not readline itself.

openSUSE Timbleweed 64bit kernel 6.6.6-1-default
Ruby 3.3.0-rc1 (installed via rbenv or manually from source tarball - same behavior)
libreadline 8.2 (but tried version 7 with teh same outcome)



-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ruby-core:115839] [Ruby master Bug#20074] IRB/Pry search up arrow in 3.3 changed behaviour "\e[A": history-search-backward
  2023-12-20 21:50 [ruby-core:115824] [Ruby master Bug#20074] IRB/Pry search up arrow in 3.3 changed behaviour "\e[A": history-search-backward oleg_antonyan (Oleg Antonyan) via ruby-core
  2023-12-21  8:38 ` [ruby-core:115838] " hsbt (Hiroshi SHIBATA) via ruby-core
@ 2023-12-21  9:47 ` oleg_antonyan (Oleg Antonyan) via ruby-core
  1 sibling, 0 replies; 3+ messages in thread
From: oleg_antonyan (Oleg Antonyan) via ruby-core @ 2023-12-21  9:47 UTC (permalink / raw)
  To: ruby-core; +Cc: oleg_antonyan (Oleg Antonyan)

Issue #20074 has been updated by oleg_antonyan (Oleg Antonyan).


hsbt (Hiroshi SHIBATA) wrote in #note-1:
> Thanks for your report. Ruby 3.3 will use reline that is readline replacement of pure ruby by default.
> 
> Can you reproduce it with `gem install readline-ext`?
> 
> Finally, could you file this issue to [the upstream of reline repository](https://github.com/ruby/reline)?

Thank you! Indeed, readline-ext gem helps.
Reported to reline: https://github.com/ruby/reline/issues/618

----------------------------------------
Bug #20074: IRB/Pry search up arrow in 3.3 changed behaviour "\e[A": history-search-backward
https://bugs.ruby-lang.org/issues/20074#change-105793

* Author: oleg_antonyan (Oleg Antonyan)
* Status: Third Party's Issue
* Priority: Normal
* ruby -v: ruby 3.3.0rc1 (2023-12-11 master a49643340e) +YJIT [x86_64-linux]
* Backport: 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN
----------------------------------------
In 3.3 since preview 1 this handy readline feature is kind of broken

``` shell
$ cat ~/.inputrc

"\e[A": history-search-backward
"\e[B": history-search-forward
```

It supposed to search history by starting typing substring, you hit up arrow and it brings the line starting from this substring from the history. And it does that, but the problem is when you don't type anything and just hit up arrow it brings the latest history item and places the cursor at the beginning of line. 
Previously (up to 3.2.2) it used to put cursor at the end of the line. This is how it works pretty much everywhere (bash, for example, or in test C program that loops over `readline("> ")`), so the problem is in the way Ruby 3.3+ uses readline, but not readline itself.

openSUSE Timbleweed 64bit kernel 6.6.6-1-default
Ruby 3.3.0-rc1 (installed via rbenv or manually from source tarball - same behavior)
libreadline 8.2 (but tried version 7 with teh same outcome)



-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-12-21  9:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-20 21:50 [ruby-core:115824] [Ruby master Bug#20074] IRB/Pry search up arrow in 3.3 changed behaviour "\e[A": history-search-backward oleg_antonyan (Oleg Antonyan) via ruby-core
2023-12-21  8:38 ` [ruby-core:115838] " hsbt (Hiroshi SHIBATA) via ruby-core
2023-12-21  9:47 ` [ruby-core:115839] " oleg_antonyan (Oleg Antonyan) via ruby-core

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).