rustbot · GitHub

@rustbot rustbot added O-unix

Operating system: Unix-like

S-waiting-on-review

Status: Awaiting review from the assignee but also interested parties.

T-libs

Relevant to the library team, which will review and decide on the PR/issue.

labels

Nov 2, 2024

madsmtm

the8472

@madsmtm

@madsmtm

@madsmtm

@madsmtm

@madsmtm

bjorn3

@madsmtm

@madsmtm

joshtriplett

@madsmtm

The Debug output of Command is very useful for showing to the user the
command that was executed when something went wrong. This is done for
example by rustc when invoking an external tool like the linker fails.
It is also overly verbose, since everything is quoted, which makes it
harder to read. Instead, we now first check if we're reasonably sure
that an argument is simple enough that using it in the shell wouldn't
need quoting, and then output it without quotes if possible.
Before and example output could look like this:
    PATH="/a:/b" "cc" "foo.o" "-target" "arm64-apple-darwin11.0"
Now it looks like this:
    PATH=/a:/b cc foo.o -target arm64-apple-darwin11.0

@madsmtm

@rustbot rustbot added the S-waiting-on-author

Status: This is awaiting some action (such as code changes or more information) from the author.

label

Jun 16, 2025

Read the original on github.com ↗