You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a script named query that executes this: bun --env-file=".env.development" getData/query.ts.
Now to pass any arguments to the script I would use it like: bun run query --prod --q "SELECT * from table" .
But running it normally like: bun --env-file='.env.development' getData/query.ts --prod --q "SELECT * from table" doesn't have any problems running and parsing the arguments, like the case above.
I tried to escape both " and ' but nothing worked.
Unless this is 1-to-1 behaviour with how npm loads argruments to scripts, then I am pretty sure that this is a bug.
What is the expected behavior?
Expected behaviour should be that the bun run command would parse a string argument, like in the example above correctly, as 1 argument. Like:
What version of Bun is running?
1.1.29+6d43b3662
What platform is your computer?
Linux 6.5.0-44-generic x86_64 x86_64
What steps can reproduce the bug?
I have a script named
query
that executes this:bun --env-file=".env.development" getData/query.ts
.Now to pass any arguments to the script I would use it like:
bun run query --prod --q "SELECT * from table"
.But running it normally like:
bun --env-file='.env.development' getData/query.ts --prod --q "SELECT * from table"
doesn't have any problems running and parsing the arguments, like the case above.I tried to escape both
"
and'
but nothing worked.Unless this is 1-to-1 behaviour with how npm loads argruments to scripts, then I am pretty sure that this is a bug.
What is the expected behavior?
Expected behaviour should be that the
bun run
command would parse a string argument, like in the example above correctly, as 1 argument. Like:What do you see instead?
What I get instead is:
Additional information
Importing
argv
through eitherprocess
orbun
result to the same problem.The text was updated successfully, but these errors were encountered: