wsl-sudo icon indicating copy to clipboard operation
wsl-sudo copied to clipboard

STDIN doesn't seem to be working in WSL2

Open weikinhuang opened this issue 2 years ago • 0 comments

Hi, this is an awesome script, I'm having an issue with using stdin in WSL 2 with the elevated sessions.

The following example will hang, I'm expecting an output of 123 like if I run it in a normal shell echo 123 | cat -.

echo 123 | python3 wsl-sudo.py cat -

This outputs 123 in WSL 1, but then hangs after.

Thanks for taking a look.

weikinhuang avatar May 16 '22 20:05 weikinhuang