Skip to content

Windows path separators lost #68

Closed
@EdVanDance

Description

@EdVanDance

Hello 😃

I'm trying to use this with response files on windows (features = ["response"]) with windows style paths in response files. But I'm getting unexpected results.

With ...

fn main() {
    let args = argfile::expand_args(argfile::parse_response, argfile::PREFIX).unwrap();
    dbg!(args);
}

... and this response file ...

# response.txt
C:\test\test.rs

... I'm getting:

     Running `target\debug\argfile-test.exe @response.txt`
[src\main.rs:3:5] args = [
    "target\\debug\\argfile-test.exe",
    "C:testtest.rs",
]

The path separators are gone producing an invalid path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugNot as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions