Describe the bug
I have followed the instructions to map various Linux command, including less. If I try to pipe output via less, the command hangs at the colon prompt until I hit CTRL-C. This happens on a distro running as WSL v2. Version 1 distros are fine.
To Reproduce
Steps to reproduce the behavior:
- Install WslInterop.
- Add following line to PS profile:
Import-WslCommand "apt", "awk", "grep", "head", "less", "sed", "seq", "tail", "dos2unix", "du", "df", "wget", "gzip", "cat", "free", "top", "uname", "wc"
- Install Ubuntu from Microsoft Store.
- Set this to the default:
- Set to WSL 2:
wsl --set-version Ubuntu 2
- In new PowerShell (using Windows Terminal), type:
cd <a folder with more than a page of files>
ls | less
The command hangs at :. You can't, for example, press f or b.
Expected behavior
Piping output to less should allow you to page up/down, search, etc.
Screenshots
N/A
Desktop (please complete the following information):
- OS: Windows 10 20H2
- PowerShell v7.1.2
Additional context
Changing the distribution to WSL 1 fixes the issue:
wsl --set-version Ubuntu 1
In a new Terminal session, the following now works as expected:
Thank you for providing this incredibly useful module.
Describe the bug
I have followed the instructions to map various Linux command, including
less. If I try to pipe output vialess, the command hangs at the colon prompt until I hitCTRL-C. This happens on a distro running as WSL v2. Version 1 distros are fine.To Reproduce
Steps to reproduce the behavior:
The command hangs at
:. You can't, for example, pressforb.Expected behavior
Piping output to
lessshould allow you to page up/down, search, etc.Screenshots
N/A
Desktop (please complete the following information):
Additional context
Changing the distribution to WSL 1 fixes the issue:
In a new Terminal session, the following now works as expected:
Thank you for providing this incredibly useful module.