PowerShell-Beautifier icon indicating copy to clipboard operation
PowerShell-Beautifier copied to clipboard

Set-Variable can replace set where it shouldn't

Open c22 opened this issue 5 years ago • 1 comments

When given the input:

netsh int ip set interface $index metric= ($metric + 5)

You end up with:

netsh int ip Set-Variable interface $index metric= ($metric + 5)

c22 avatar Jan 02 '20 04:01 c22

Quick fix:

$psBeautify = Get-Module PowerShell-Beautifier
$psBeautify.PrivateData.ValidCommandNames.Remove('set')

stinos avatar Feb 11 '20 12:02 stinos