Skip to content
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

Globbing /tmp/xx/*.txt incorrectly returns empty list #8304

Closed
pesterhazy opened this issue Jan 20, 2024 · 2 comments · Fixed by #10121
Closed

Globbing /tmp/xx/*.txt incorrectly returns empty list #8304

pesterhazy opened this issue Jan 20, 2024 · 2 comments · Fixed by #10121
Assignees
Labels
bug Something isn't working bun:glob Related to Bun.Glob bun.js Something to do with a Bun-specific API

Comments

@pesterhazy
Copy link

What version of Bun is running?

1.0.24+6fa35839c

What platform is your computer?

Darwin 22.6.0 arm64 arm

What steps can reproduce the bug?

await $rm -rf /tmp/xx; mkdir /tmp/xx; touch /tmp/xx/1.txt /tmp/xx/2.txt; echo /tmp/xx/*.txt.text()

What is the expected behavior?

"/tmp/xx/1.txt /tmp/xx/2.txt\n"

What do you see instead?

"\n"

Additional information

No response

@pesterhazy pesterhazy added the bug Something isn't working label Jan 20, 2024
@angelxmoreno
Copy link

I have experienced issues with globs as well when using TypeOrm and using routing-controllers.
Basically when I start up my server using bun, both globs return empty but when I run it in ts-node they return what is expect.

@Electroid Electroid added the bun.js Something to do with a Bun-specific API label Jan 21, 2024
@zackradisic zackradisic added the bun:glob Related to Bun.Glob label Feb 14, 2024
@zackradisic
Copy link
Contributor

Fixed by #10121

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working bun:glob Related to Bun.Glob bun.js Something to do with a Bun-specific API
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants