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 crashes on cp -i command #16003

Open
manazoid opened this issue Dec 26, 2024 · 0 comments
Open

Bun crashes on cp -i command #16003

manazoid opened this issue Dec 26, 2024 · 0 comments
Labels
crash An issue that could cause a crash shell Something to do with Bun as a shell windows An issue that is known to occur on Windows

Comments

@manazoid
Copy link

manazoid commented Dec 26, 2024

How can we reproduce the crash?

I try to copy file but if it not exists

// package. json
{
  "name": "project",
  "scripts": {
    "rt": "cd ./utils && yes n | cp -i .env.example .env"
  }
}

-n, --no-clobber does not working (it was ignored and replace all the contents)
The following command cp -n .env.example .env need to copy file without replacing its content but it isn't

Relevant log output

Stack Trace (bun.report)

Bun v1.1.42 (50eec00) on windows x86_64 [AutoCommand]

panic: access of union field 'mini' while field 'js' is active

Features: standalone_shell

Sentry Issue: BUN-ACF

@manazoid manazoid added the crash An issue that could cause a crash label Dec 26, 2024
@github-actions github-actions bot added the windows An issue that is known to occur on Windows label Dec 26, 2024
@DonIsaac DonIsaac added the shell Something to do with Bun as a shell label Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crash An issue that could cause a crash shell Something to do with Bun as a shell windows An issue that is known to occur on Windows
Projects
None yet
Development

No branches or pull requests

2 participants