-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Wrong behavior when reading arguments with / in git bash #5179
Comments
If you run with the debug output, as requested in the template, you'll likely see that clap is just subject to whatever |
Yeah, we've already confirmed that this is just It's just some weird automagical path replacement that happens |
Yes, even in C it doesn't capture argv correctly but it would be nice if clap provided a fix. |
|
We also don't automatically integrate |
The argument expands to git bash root folder. This doesn't happen with other commands (
echo /foo
works fine)When the argument has only one letter (
/a
) it expands toA:/
Please complete the following tasks
Rust Version
1.73
Clap Version
4.4.6
Minimal reproducible code
Steps to reproduce the bug with the above code
under git bash:
cargo run -- '/foo'
Actual Behaviour
foo =
"C:/Users/user/AppData/Local/Programs/Git/foo"
Expected Behaviour
foo = "/foo"
Additional Context
chmln/sd#170
Debug Output
No response
The text was updated successfully, but these errors were encountered: