Open francisfontoura opened 3 months ago
Confirming this is a bug
It seems to finish after some number of minutes
May this be related with pulling just one line?
const line = (await console[Symbol.asyncIterator]().next()).value
It will pull one line, but the execution remains active, might be related to the execution remaining active in this issue.
I guess the resource is not disposed when you pull like that, bun keeps the process alive.
What version of Bun is running?
1.1.10+5102a9443
What platform is your computer?
Linux 5.15.0-107-generic x86_64 x86_64
What steps can reproduce the bug?
Save the following code as
test.ts
and give+x
permission:So, in shell:
What is the expected behavior?
It's expected to see the contents of
movies.json
printed to console.What do you see instead?
Nothing is printed but the execution remains active.
Additional information
In some cases, with some different code inside the
for
block, the unexpected behavior occurs without double piping, justcat large-file | ./test.ts
.