Skip to content

Parse Environment.CommandLine directly vs trusting string[] main #354

@EricZimmerman

Description

@EricZimmerman

Depending on the shell being used, project does not get strings ending in " right due to broken args parsing (a long-standing issue it seems)

powershell 6.x seems to work as expected, but 5.x does not

see
https://twitter.com/jonsequitur/status/1077619442073231360
for more

image

image

image

here is another example (i think) if bad parsing due to " at the end when constructing FileInfo object. may be related to the malformed path as outlined above as well.

image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions