This repository was archived by the owner on Aug 11, 2022. It is now read-only.

Description
I'm opening this issue because:
What's going wrong?
PowerShell can’t properly pass string arguments containing the &
symbol to Windows Command Prompt scripts, if the string containing the ampersand doesn’t have spaces, due to how the cmd prompt parses the &
as a command delimiter, even in a string.
How can the CLI team reproduce the problem?
The following PowerShell log demonstrates the issue:
PS C:\> echo-cli 'https://example.com/?a=1&b=2'
https://example.com/?a=1
'b' is not recognized as an internal or external command,
operable program or batch file.
I’m providing a fix in npm/cmd-shim#27.
PowerShell log with said fix applied:
PS C:\> echo-cli 'https://example.com/?a=1&b=2'
https://example.com/?a=1&b=2
supporting information:
This happens on both PowerShell 6 and Windows PowerShell 5.1.