3 ms·
It's still a shell. No need to use & 'externalProgram.exe' when you can just use externalProgram.exe just as well. I see a lot of weird things on St
by ygra 12y ago
It's still a shell. No need to use
& 'externalProgram.exe'
when you can just use
externalProgram.exe
just as well. I see a lot of weird things on Stack Overflow with & or even Invoke-Expression, especially when it involves passing parameters to programs and the lack of understanding how parameter passing works. The results usually aren't pretty, then.
- MichaelGG 12y agoPretty sure you need & to call a variable, like & $git if you've a var pointing to git instead of having in the path.