Skip to content
This repository has been archived by the owner. It is now read-only.

[Bug][Shimgen] Shimgen 0.4.0 doesn't always strip off the first argument (the name of the executable) - (cmd.exe versus PowerShell) #655

Closed
ferventcoder opened this Issue Jan 6, 2015 · 0 comments

Comments

Projects
None yet
1 participant
@ferventcoder
Copy link
Contributor

ferventcoder commented Jan 6, 2015

@ferventcoder ferventcoder changed the title [Bug][Shimgen] Shimgen 0.4.0 doesn't always shift off the first argument (cmd.exe versus PowerShell) [Bug][Shimgen] Shimgen 0.4.0 doesn't always strip off the first argument (the name of the executable) - (cmd.exe versus PowerShell) Jan 6, 2015

ferventcoder added a commit that referenced this issue Jan 6, 2015

(GH-655) Shimgen sometimes passes the exe name through
Say you call choco list -lo.

In cmd.exe the first argument returned when calling
Environment.CommandLine is exactly what is passed into the command e.g.
"choco list -lo", however PowerShell qualifies the executable to
"C:\ProgramData\chocolatey\bin\choco.exe list -lo".

This fix updates shimgen to 0.6.0, which has the fix in it.

ferventcoder added a commit that referenced this issue Jan 6, 2015

Merge branch 'stable'
* stable:
  0.9.8.31-beta1
  (doc) update nuspec/changelog
  (GH-655) Shimgen sometimes passes the exe name through
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.