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

command not found: SET in Windows #11910

Closed
hyoretsu opened this issue Jun 16, 2024 · 1 comment
Closed

command not found: SET in Windows #11910

hyoretsu opened this issue Jun 16, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@hyoretsu
Copy link

What version of Bun is running?

1.1.13+bd6a60512

What platform is your computer?

Microsoft Windows NT 10.0.22631.0 x64

What steps can reproduce the bug?

Create the following script SET NODE_OPTIONS=--max_old_space_size=4096&&SET NODE_ENV=development&&webpack --progress --color --watch --env dev and run it

What is the expected behavior?

It should run, like it does on Yarn

What do you see instead?

bun: command not found: SET

Additional information

No response

@hyoretsu hyoretsu added bug Something isn't working needs triage labels Jun 16, 2024
@paperdave
Copy link
Collaborator

paperdave commented Jun 17, 2024

Bun runs package.json scripts as bash scripts, to make it consistent with how it runs on Linux. To opt out of this behavior, you can pass --shell=system or add this into bunfig.toml

[run]
shell = "system"

Closing as not a bug.

@paperdave paperdave closed this as not planned Won't fix, can't repro, duplicate, stale Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants