-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
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
ag
runs without stdin with Bun shell
#9510
Comments
This can be reproduced outside of JavaScript and directly in the bun shell via running a @zackradisic are we now inheriting stdin instead of creating a pipe? When |
Closing because this is actually caused by In this particular case, you could instead redirect |
ag
runs without stdin with Bun shell
What version of Bun is running?
1.0.33+9e91e137f
What platform is your computer?
Darwin 23.3.0 arm64 arm
What steps can reproduce the bug?
I use
ag
, a faster alternative togrep
, in a Bun shell command that pipes stdout from one command to ag´s stdin. It worked fine up to Bun 1.0.31, but fails in Bun 1.0.32 and 1.0.33.In an empty directory, make these two files:
catfile.txt
bunbug.test.js
What is the expected behavior?
In the session below, I first run the commands
cat catfile.txt | grep 'cat'
andcat catfile.txt | ag 'cat'
. They do the same thing, as they should.Then, I install Bun 1.0.31, and run the test that confirms the output is equal.
What do you see instead?
When I install Bun 1.0.32, the test fails. It's now as if
ag
runs without stdin, it finds matches in both files.The same happens in 1.0.33.
Additional information
No response
The text was updated successfully, but these errors were encountered: