You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I have a command that can be resolved to an .exe or .cmd or another PATHEXT extension, formatting the document adds the extension to it.
e.g.
node --version
becomes
node.exe--version
I would like to be able to stop this from happening somehow.
Why would this be a problem if it's accurate you may ask? Because I'm trying to write a PowerShell script that would be ran via PowerShell core on Linux, where "node" is just "node", not "node.exe". That same script is also compatible with Windows and PowerShell 5.1, but to achieve the cross platform compatibility, the extensions are intentionally removed.
Activity
rjmholt commentedon Jul 26, 2019
In fact this is fixed by PSScriptAnalyzer 1.18.1 already: PowerShell/PSScriptAnalyzer#1210 (comment).
If you run
Install-Module PSScriptAnalyzer -Scope CurrentUseryou should override the current version.We'll also be releasing an update of the extension in the next week or two that includes the updated PSScriptAnalyzer dependency.