-
-
Notifications
You must be signed in to change notification settings - Fork 35.3k
process.stdin is not implemented in bash for Windows 10... unknown type #8839
Copy link
Copy link
Closed
Labels
child_processIssues and PRs related to the child_process subsystem.Issues and PRs related to the child_process subsystem.libuvIssues and PRs related to the libuv dependency or the uv binding.Issues and PRs related to the libuv dependency or the uv binding.processIssues and PRs related to the process subsystem.Issues and PRs related to the process subsystem.windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.wslIssues and PRs related to the Windows Subsystem for Linux.Issues and PRs related to the Windows Subsystem for Linux.
Metadata
Metadata
Assignees
Labels
child_processIssues and PRs related to the child_process subsystem.Issues and PRs related to the child_process subsystem.libuvIssues and PRs related to the libuv dependency or the uv binding.Issues and PRs related to the libuv dependency or the uv binding.processIssues and PRs related to the process subsystem.Issues and PRs related to the process subsystem.windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.wslIssues and PRs related to the Windows Subsystem for Linux.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_64Repro code:
I named this file
repro.js... yes, it reads itself, but any stream will reproduce this error.Then run:
node repro.jsThis 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
spawnas well, obviously, but it's tougher to get the error.