Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set-Variable can replace set where it shouldn't #53

Open
c22 opened this issue Jan 2, 2020 · 1 comment
Open

Set-Variable can replace set where it shouldn't #53

c22 opened this issue Jan 2, 2020 · 1 comment

Comments

@c22
Copy link

c22 commented Jan 2, 2020

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)

@stinos
Copy link

stinos commented Feb 11, 2020

Quick fix:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants