DTW-DanWard / PowerShell-Beautifier

A whitespace reformatter and code cleaner for Windows PowerShell and PowerShell Core
MIT License
334 stars 38 forks source link

External commands borked by alias replacement #41

Open m-kostrzewa opened 6 years ago

m-kostrzewa commented 6 years ago

I've encountered an issue, where the following snippet

netsh interface ipv4 set address blabla

gets transformed to

netsh interface ipv4 Set-Variable address blabla

Is there a nice way to fix it? It seems to be handled in CommandArgument handler function. I don't see a way to differentiate it from legitimate scenarios though...

wjandrea commented 3 years ago

Duplicate? #53

@stinos provided a quick fix there