4
When I try to run a program with a command line option from the PowerShell prompt, PowerShell ends up mangling the option. Why does this happen? Is there any way to stop it besides enclosing the option in quotes?
For example, from the PowerShell prompt:
PS Microsoft.PowerShell.Core\FileSystem::\\\\mach\share> .\myprog.exe -file=input.txt
myprog.exe
ends up getting two arguments:
- -file=input
- .txt
I need to run it like:
.\myprog.exe "-file=input.txt"
or
.\myprog.exe '-file=input.txt'
to force it to be one argument. No other shell does this.