oven-sh/bun
when passing arguments to `bun run` it escapes double quotes
Chiusa
#7667 aperta il 15 dic 2023
bugbun installgood first issue
Metriche repository
- Star
- (90.348 stelle)
- Metriche merge PR
- (Merge medio 1g 17h) (357 PR mergiate in 30 g)
Descrizione
What version of Bun is running?
1.0.18+36c316a24
What platform is your computer?
Linux 5.15.0-58-generic x86_64 x86_64
What steps can reproduce the bug?
- add a command containing double quotes to package.json
scripts
{
"scripts": {
"foo": "echo \"ONE\" TWO",
}
}
- call
bun run foo - call
bun run foo THREE
What is the expected behavior?
> bun run foo
$ echo "ONE" TWO
ONE TWO
> bun run foo THREE
$ echo "ONE" TWO THREE
ONE TWO THREE
>
What do you see instead?
> bun run foo
$ echo "ONE" TWO
ONE TWO
> bun run foo THREE
$ echo \"ONE\" TWO THREE
"ONE" TWO THREE
>