Prerequisites
Steps to reproduce
Please use the attached script test.ps1 and satellite trivial Get-Arg.exe that prints all the arguments.
_221118_1846-ps730.zip
Or use/build from sources below:
test.ps1
& $PSScriptRoot\Get-Arg.exe 1 'a a' '"b"' '\"c\"'
Get-Arg.cs
using System;
internal class Program
{
static void Main(string[] args)
{
foreach (var arg in args)
Console.WriteLine(arg);
}
}
Test 1 Invoke by powershell 5.1:
Output (good):
Test 2 Invoke by pwsh 7.2.7:
C:\Bin\pwsh.7.2.7\pwsh.exe .\test.ps1
Output (good, the same as above):
Test 3 Invoke by pwsh 7.3.0:
Output (not good, different from test 1 and 2):
The third and forth arguments are sent differently.
Expected behavior
Actual behavior
Error details
Environment data
Name Value
---- -----
PSVersion 7.3.0
PSEdition Core
GitCommitId 7.3.0
OS Microsoft Windows 10.0.19045
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Visuals
No response
Prerequisites
Steps to reproduce
Please use the attached script
test.ps1and satellite trivialGet-Arg.exethat prints all the arguments._221118_1846-ps730.zip
Or use/build from sources below:
test.ps1
Get-Arg.cs
Test 1 Invoke by powershell 5.1:
Output (good):
Test 2 Invoke by pwsh 7.2.7:
Output (good, the same as above):
Test 3 Invoke by pwsh 7.3.0:
Output (not good, different from test 1 and 2):
The third and forth arguments are sent differently.
Expected behavior
see aboveActual behavior
see aboveError details
.Environment data
Visuals
No response