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

Version 0.5.0 doesn't always shift off the first argument - the name of the executable (cmd.exe versus PowerShell) #7

Closed
ferventcoder opened this Issue Jan 6, 2015 · 1 comment

Comments

Projects
None yet
1 participant
@ferventcoder
Copy link
Member

ferventcoder commented Jan 6, 2015

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". As a result more work needs to be done to shift off the first argument.

@ferventcoder ferventcoder added the bug label Jan 6, 2015

@ferventcoder ferventcoder self-assigned this Jan 6, 2015

@ferventcoder

This comment has been minimized.

Copy link
Member Author

ferventcoder commented Jan 6, 2015

Fixed in 0.6.0

@ferventcoder ferventcoder changed the title Version 0.5.0 doesn't always shift off the first argument (cmd.exe versus PowerShell) Version 0.5.0 doesn't always shift off the first argument - the name of the executable (cmd.exe versus PowerShell) Jan 6, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.