WSL: [BUG] Ctrl+r, input some, Tab, get Suspended !

Environment

Surface Book i7 16G 13.5inch, Windows 10 Pro 2004(OS BUILD: 19041.508)

Steps to reproduce

  1. Input Ctrl+r, show: (reverse-i-search)`':
  2. input some thing, like sou show: (reverse-i-search)`sou’: source ~/.profile
  3. Input Tab to fill all orders. show :“~$ ource ~/.profile” or “~$ source ~/.profile” but then can not do anything.
  4. Input Ctrl+c, if you got “$ ^Curce ~/.profile” Congratulation! You reproduce this bug!

WSL logs: I do not know where it is.It may have nothing output.

Expected behavior

Fix that. I can fill all orders, and run this command.

Actual behavior

???

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 9
  • Comments: 27

Most upvoted comments

I’m having the same issue. It can freeze for over 20 seconds. Happens on both WSL1 and WSL2, on Ubuntu, Fedora, and alpine alike.

The problem occurs if I’m using Windows Terminal, Mintty, command prompt terminal, powershell terminal, or wsl.exe (which I think is the same as command prompt)

Typing in stty sane before trying didn’t seem to make much of a difference.

The interesting thing to note is the bell sound happens only AFTER the freeze finishes freezing.

The more and more I “test” this issue, the less it’s happening. So now, for example there’s either no freeze delay, or less than a second. But it was timed at over 20 seconds earlier. I’ve restarted my Windows Terminal several times, and it’s inconsistent

Please reopen this issue

Bruh it’s 2023 fix it please Microsuck

Use right arrow instead of tab.

I had the same problem and figured out that if I do not use tab, it won’t crash. So:

1- Press Ctrl + R and search. 2- Press Ctrl + R again if you need to find more results. 3- Then use right arrow to select the command you want.

Same issue here. Windows 11, WSL 2.

Its July 21, 2022, and this bug is still part of WSL, c’mon now

I am experiencing this issue on my Debian WSL, I think it should be reopened. This issue is exactly as described in the title. Windows: Microsoft Windows [Version 10.0.19044.2006] WSL: Debian GNU/Linux 11 (bullseye)

Not too long ago I figured out what the actual problem is… What’s hapenning is that upon Tab where we’re expecting autocomplete, the CLI is actually cycling through $PATH (linux wsl: echo $PATH) in search of the script and not actually autocompleting. Generally this wouldn’t be an issue in a linux system, but if you look closely at the $PATH in WSL it also includes /mnt/c/Windows … causing a HUGE overheard in which to search. A solution is to remove the windows paths before they’re loaded. Hope that helps.

Yes this issue still persists please provide the solution

Windows 10 + WSL2: Debian GNU/Linux 11 just go with ctrl + r, find something and press tab I can no longer use terminal…

Not too long ago I figured out what the actual problem is… What’s hapenning is that upon Tab where we’re expecting autocomplete, the CLI is actually cycling through $PATH (linux wsl: echo $PATH) in search of the script and not actually autocompleting. Generally this wouldn’t be an issue in a linux system, but if you look closely at the $PATH in WSL it also includes /mnt/c/Windows … causing a HUGE overheard in which to search. A solution is to remove the windows paths before they’re loaded. Hope that helps.

Tried this but it didn’t work for me. If I do a ctrl-r, then tab and then ctrl-c to abort the shell gets stuck and I have to close it.

This issue is still happening for me OS Name: Microsoft Windows 11 Pro OS Version: 10.0.22000 N/A Build 22000

NAME=“openSUSE Leap” VERSION=“15.3” ID=“opensuse-leap” ID_LIKE=“suse opensuse” VERSION_ID=“15.3”

Use right arrow instead of tab.

I had the same problem and figured out that if I do not use tab, it won’t crash. So:

1- Press Ctrl + R and search. 2- Press Ctrl + R again if you need to find more results. 3- Then use right arrow to select the command you want.

Thank you! Seems like this issue should be easy to fix then 😃

Use right arrow instead of tab.

I had the same problem and figured out that if I do not use tab, it won’t crash. So:

1- Press Ctrl + R and search. 2- Press Ctrl + R again if you need to find more results. 3- Then use right arrow to select the command you want.

Confirm the existence of the problem so far, and this is the only working solution.