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
PS C:\Users\me> .\mybatch.cmd"a,b"
a
b
PS C:\Users\me> .\mybatch.cmd'a,b'
a
b
PS C:\Users\me> .\mybatch.cmd--% "a,b""a,b"
ECHO is off. # this is expected in cmd
PS C:\Users\me> .\mybatch.cmd--% 'a,b''ab'# this is expected in cmd
Expected behavior
Comma inside the string should be preserved, like when calling it in cmd:
Steps to reproduce
Create a batch file
mybatch.cmdcontaining:In PowerShell call it with
Expected behavior
Comma inside the string should be preserved, like when calling it in cmd:
Actual behavior
Comma is parsed as array.
Environment data