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

bun shell rm -r does not delete all files and can also hit Invalid state #9318

Open
paperdave opened this issue Mar 8, 2024 · 1 comment
Assignees
Labels
bug Something isn't working shell Something to do with Bun as a shell

Comments

@paperdave
Copy link
Member

What version of Bun is running?

No response

What platform is your computer?

No response

What steps can reproduce the bug?

await Bun.$`rm -r build`;
console.log('done');

put a giant directory tree. i used a copy of my audio journal (1gb, 2k+ files)

What is the expected behavior?

delete all, then done, then close

What do you see instead?

~/yolo $ bun '/Users/dave/yolo/bruh.ts'
done

uh-oh: Invalid state
bun will crash now 😭😭😭

----- bun meta -----
Bun v1.0.30 (1424a196) macOS Silicon 22.6.0
AutoCommand: 
Elapsed: 18ms | User: 14ms | Sys: 31ms
RSS: 26.57MB | Peak: 26.57MB | Commit: 35.68MB | Faults: 3
----- bun meta -----

0   0x1038f3d70
1   ???
2   ???

Search GitHub issues https://bun.sh/issues or ask for #help in https://bun.sh/discord

thread 4360069 panic: Invalid state
fish: Job 1, 'bun '/Users/dave/yolo/bruh.ts'' terminated by signal SIGABRT (Abort)
~/yolo $ 

the files are not deleted all the way either

Additional information

Might be a simple duplicate of #8572

@paperdave paperdave added bug Something isn't working shell Something to do with Bun as a shell labels Mar 8, 2024
@zackradisic
Copy link
Contributor

Just noting for posterity here that I believe that this should be fixed in #8456

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working shell Something to do with Bun as a shell
Projects
None yet
Development

No branches or pull requests

2 participants