| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2022-03-23 | Add test for issue #95178 | Chris Denton | -0/+21 | |
| 2022-03-10 | Use implicit capture syntax in format_args | T-O-R-U-S | -9/+5 | |
| This updates the standard library's documentation to use the new syntax. The documentation is worthwhile to update as it should be more idiomatic (particularly for features like this, which are nice for users to get acquainted with). The general codebase is likely more hassle than benefit to update: it'll hurt git blame, and generally updates can be done by folks updating the code if (and when) that makes things more readable with the new format. A few places in the compiler and library code are updated (mostly just due to already having been done when this commit was first authored). | ||||
| 2021-12-23 | Rollup merge of #92208 - ChrisDenton:win-bat-cmd, r=dtolnay | Matthias Krüger | -0/+19 | |
| Quote bat script command line Fixes #91991 [`CreateProcessW`](https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-createprocessw#parameters) should only be used to run exe files but it does have some (undocumented) special handling for files with `.bat` and `.cmd` extensions. Essentially those magic extensions will cause the parameters to be automatically rewritten. Example pseudo Rust code (note that `CreateProcess` starts with an optional application name followed by the application arguments): ```rust // These arguments... CreateProcess(None, `@"foo.bat` "hello world""`@,` ...); // ...are rewritten as CreateProcess(Some(r"C:\Windows\System32\cmd.exe"), `@""foo.bat` "hello world"""`@,` ...); ``` However, when setting the first parameter (the application name) as we now do, it will omit the extra level of quotes around the arguments: ```rust // These arguments... CreateProcess(Some("foo.bat"), `@"foo.bat` "hello world""`@,` ...); // ...are rewritten as CreateProcess(Some(r"C:\Windows\System32\cmd.exe"), `@"foo.bat` "hello world""`@,` ...); ``` This means the arguments won't be passed to the script as intended. Note that running batch files this way is undocumented but people have relied on this so we probably shouldn't break it. | ||||
| 2021-12-22 | Fix tests | Chris Denton | -3/+7 | |
| 2021-12-16 | Quote bat script command line | Chris Denton | -0/+19 | |
| 2021-11-23 | fix test in std::process on android | name1e5s | -28/+36 | |
| 2021-10-30 | Use "rustc" for testing Command args | Chris Denton | -3/+3 | |
| "echo" is not an application on Windows so `Command` tests could fail even if that's not what's being tested for. | ||||
| 2021-06-24 | Test that `env_clear` works on Windows | Chris Denton | -0/+9 | |
| 2020-08-31 | std: move "mod tests/benches" to separate files | Lzu Tao | -0/+401 | |
| Also doing fmt inplace as requested. | ||||
