about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorKornel <kornel@geekhood.net>2017-11-07 12:17:04 +0000
committerKornel <kornel@geekhood.net>2017-11-07 17:01:56 +0000
commit53de42e3334a004f3ed5bbc33317c871158ca2a4 (patch)
treeda7a0e22faa77d63d1a23c0a0a17b244ed8981f4 /src/libstd
parent3e7f501991df2f7fc87f6c340945112c128735d2 (diff)
downloadrust-53de42e3334a004f3ed5bbc33317c871158ca2a4.tar.gz
rust-53de42e3334a004f3ed5bbc33317c871158ca2a4.zip
Warn about non-portability of glob patterns
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/env.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libstd/env.rs b/src/libstd/env.rs
index f81adad3ebe..457c6e1409d 100644
--- a/src/libstd/env.rs
+++ b/src/libstd/env.rs
@@ -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 unquoted arguments with glob patterns
+/// (such as `*` and `?`). On Windows this is not done, and such arguments are
+/// passed as-is.
+///
 /// # Panics
 ///
 /// The returned iterator will panic during iteration if any argument to the