process.stdin
is not implemented in bash for Windows 10... unknown type
#8839
Labels
child_process
Issues and PRs related to the child_process subsystem.
libuv
Issues and PRs related to the libuv dependency or the uv binding.
process
Issues and PRs related to the process subsystem.
windows
Issues and PRs related to the Windows platform.
wsl
Issues and PRs related to the Windows Subsystem for Linux.
uname output, just in case:
Linux WHITSON 3.4.0+ #1 PREEMPT Thu Aug 1 17:06:05 CST 2013 x86_64 x86_64 x86_64
Repro code:
I named this file
repro.js
... yes, it reads itself, but any stream will reproduce this error.Then run:
node repro.js
This will output:
This code works correctly (outputting the contents of the file itself) on regular Ubuntu and regular Windows, but not on the Linux subsystem in Windows 10.
This was discovered in catdad/shellton#11.
Same issue happens with
spawn
as well, obviously, but it's tougher to get the error.The text was updated successfully, but these errors were encountered: