oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
74.16k stars 2.77k forks source link

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

Open benmerckx opened 1 month ago

benmerckx commented 1 month ago

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

reillyjodonnell commented 1 month ago

Also present in darwin-arm64 24.0.0 running bun 1.1.27