-
Notifications
You must be signed in to change notification settings - Fork 8
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
URL with &
in query string only passes the first arg
#9
Comments
Thanks for opening this issue! I'm unable to reproduce this on macOS, so it's difficult to help with any kind of fix for now! |
Looks like, in Windows, you just need to wrap the I've tested this in both Command Prompt and PowerShell. C:\Users\...>start http://www.google.com/search?client=firefox-b-d&q=deno+open
'q' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\...>start http://www.google.com/search?client=firefox-b-d"&"q=deno+open PS C:\Users\...> start http://www.google.com/search?client=firefox-b-d&q=deno+open
At line:1 char:54
+ start http://www.google.com/search?client=firefox-b-d&q=deno+open
+ ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double
quotation marks ("&") to pass it as part of a string.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : AmpersandNotAllowed
PS C:\Users\...> start http://www.google.com/search?client=firefox-b-d"&"q=deno+open |
Haha, another interesting quirk of Windows it seems :D But thank you for taking your time to investigate this! I will add a note to the README! |
Test case
On Windows 10 via PowerShell.
Expected
Opens browser with URL
https://www.google.com/search?sclient=gws-wiz&q=deno_open
Actual
Opens browser with URL
https://www.google.com/search?sclient=gws-wiz
The text was updated successfully, but these errors were encountered: