Changes
- Try to fix command line arguments escaping.
Test case 1.run in command prompt:Test case 2.vtm -r term pwsh -Command "& { gci | % { \"`\"Item: $_`\"\" }}; exit 1"
run in command prompt:vtm -r term cmd /k echo "Hello, ""world!"""
- The special case when the
cmd.exeis used: after tokenization, arguments are simply concatenated with spaces between (without additional escaping).