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 strips '--' from process.argv #13984

Open
benmerckx opened this issue Sep 16, 2024 · 1 comment · May be fixed by #14003
Open

Bun strips '--' from process.argv #13984

benmerckx opened this issue Sep 16, 2024 · 1 comment · May be fixed by #14003
Assignees
Labels
bug Something isn't working node.js Compatibility with Node.js APIs node:process

Comments

@benmerckx
Copy link

What version of Bun is running?

1.1.27+267afa293

What platform is your computer?

Microsoft Windows NT 10.0.22631.0 x64

What steps can reproduce the bug?

// rest.js
console.log(process.argv)
$ node ./rest.js -- rest
[
  '.../node.exe',
  '.../rest.js',
  '--',
  'rest'
]

$ bun ./rest.js -- rest
[ 
  ".../bun.exe", 
  ".../rest.js",
  "rest"
]

What is the expected behavior?

No response

What do you see instead?

No response

Additional information

No response

@benmerckx benmerckx added bug Something isn't working needs triage labels Sep 16, 2024
benmerckx added a commit to alineacms/alinea that referenced this issue Sep 16, 2024
@reillyjodonnell
Copy link

Also present in darwin-arm64 24.0.0 running bun 1.1.27

@Jarred-Sumner Jarred-Sumner added node.js Compatibility with Node.js APIs node:process and removed needs triage labels Sep 17, 2024
@reillyjodonnell reillyjodonnell linked a pull request Sep 18, 2024 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working node.js Compatibility with Node.js APIs node:process
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants