diff options
| author | Jacob Pratt <jacob@jhpratt.dev> | 2024-11-20 01:54:26 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-20 01:54:26 -0500 |
| commit | cd36973a13f30c552c96884625de192065ed4383 (patch) | |
| tree | 09a8af5baee6e1b70a2272747eca8761c66d942c | |
| parent | c364ff70588aab421fec92e3663123e9536dbcf8 (diff) | |
| parent | 6f8fe7929aa3c7131180442dc7d90ea1be831204 (diff) | |
| download | rust-cd36973a13f30c552c96884625de192065ed4383.tar.gz rust-cd36973a13f30c552c96884625de192065ed4383.zip | |
Rollup merge of #133196 - omnivagant:correct-less-r-flag, r=tgross35
Make rustc --explain compatible with BusyBox less busybox less does not support the -r flag and less(1) says: USE OF THE -r OPTION IS NOT RECOMMENDED.
| -rw-r--r-- | compiler/rustc_driver_impl/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_driver_impl/src/lib.rs b/compiler/rustc_driver_impl/src/lib.rs index b6f7abed6f3..8dd043be6ad 100644 --- a/compiler/rustc_driver_impl/src/lib.rs +++ b/compiler/rustc_driver_impl/src/lib.rs @@ -577,7 +577,7 @@ fn show_md_content_with_pager(content: &str, color: ColorConfig) { let mut cmd = Command::new(&pager_name); // FIXME: find if other pagers accept color options let mut print_formatted = if pager_name == "less" { - cmd.arg("-r"); + cmd.arg("-R"); true } else { ["bat", "catbat", "delta"].iter().any(|v| *v == pager_name) |
