-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Warn about lack of args glob expansion in Windows shell #45830
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
Conversation
r? @dtolnay (rust_highfive has picked a reviewer for you, use r? to override) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Seems good to me once the spelling is correct.
src/libstd/env.rs
Outdated
@@ -671,6 +671,10 @@ pub struct ArgsOs { inner: sys::args::Args } | |||
/// set to arbitrary text, and may not even exist. This means this property should | |||
/// not be relied upon for security purposes. | |||
/// | |||
/// On Unix systems shell usually expands unqoted arguments with glob patterns |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo, unqoted -> unquoted
@bors r+ rollup |
📌 Commit 53de42e has been approved by |
Warn about lack of args glob expansion in Windows shell Because all shells on Linux/macOS expand globs, and even MinGW on Windows emulates this behavior, it's easy to forget that Windows by itself doesn't support glob expansion. This PR documents this cross-platform difference.
☔ The latest upstream changes (presumably #45862) made this pull request unmergeable. Please resolve the merge conflicts. |
Because all shells on Linux/macOS expand globs, and even MinGW on Windows emulates this behavior, it's easy to forget that Windows by itself doesn't support glob expansion. This PR documents this cross-platform difference.