We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.2.5+013fdddc6
Linux 6.12.16_1 x86_64 unknown
Command in bash:
bun bug.mjs <(uname)
bug.mjs:
import { createReadStream } from "fs"; const input = createReadStream(process.argv[2]); console.log((await input.toArray()).toString());
Same as node bug.mjs <(uname):
node bug.mjs <(uname)
Linux
ESPIPE: invalid seek, read fd: 12, syscall: "read", errno: -29, code: "ESPIPE"
node used: v20.16.0
alternative bug.mjs without toArray() - same behavior:
import * as readline from "readline"; import { createReadStream } from "fs"; const input = createReadStream(process.argv[2]); const rl = readline.createInterface({ input }); for await (const line of rl) { console.log(line); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What version of Bun is running?
1.2.5+013fdddc6
What platform is your computer?
Linux 6.12.16_1 x86_64 unknown
What steps can reproduce the bug?
Command in bash:
bun bug.mjs <(uname)
bug.mjs:
What is the expected behavior?
Same as
node bug.mjs <(uname)
:What do you see instead?
Additional information
node used: v20.16.0
alternative bug.mjs without toArray() - same behavior:
The text was updated successfully, but these errors were encountered: