Skip to content

Commit 6f8fe79

Browse files
committed
Make rustc --explain busybox less compatible
busybox less does not support the -r flag and less(1) says: USE OF THE -r OPTION IS NOT RECOMMENDED.
1 parent c602e9a commit 6f8fe79

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_driver_impl/src

1 file changed

+1
-1
lines changed

Diff for: compiler/rustc_driver_impl/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ fn show_md_content_with_pager(content: &str, color: ColorConfig) {
577577
let mut cmd = Command::new(&pager_name);
578578
// FIXME: find if other pagers accept color options
579579
let mut print_formatted = if pager_name == "less" {
580-
cmd.arg("-r");
580+
cmd.arg("-R");
581581
true
582582
} else {
583583
["bat", "catbat", "delta"].iter().any(|v| *v == pager_name)

0 commit comments

Comments
 (0)