After installing Bash on Ubuntu on Windows, I'm receiving an error from any rlwrap
command.
root@localhost:~# rlwrap ls
rlwrap: Could not open master pty: No such file or directory
I've made sure that /dev/ptmx has the correct permissions
root@localhost:~# ls -ld /dev/ptmx
crw-rw-rw- 1 root tty 5, 2 Apr 9 22:44 /dev/ptmx
Yet I still can't get it working. Am I the only one encountering this error? Any help would be greatly appreciated.
Windows Subsystem for Linux (WSL) doesn't (yet?) have a working
pty
implementation. I suspect that opening/dev/ptmx
always fails for this reason, even though the device file exists and has the right permissions.rlwrap
, but also programs likescreen
andtmux
, are never going to work without apty
device. They fail under WSL for the same reason asrlwrap
.Hans (
rlwrap
maintainer)