mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
sort --compress-program missing 2>/dev/full does not abort (#10951)
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
|
||||
use std::cmp::Ordering;
|
||||
use std::fs::File;
|
||||
use std::io::Write;
|
||||
use std::io::{Write, stderr};
|
||||
use std::path::PathBuf;
|
||||
use std::{
|
||||
io::Read,
|
||||
@@ -69,7 +69,8 @@ pub fn ext_sort(
|
||||
}
|
||||
Err(err) => {
|
||||
// Print the error and disable compression
|
||||
eprintln!(
|
||||
let _ = writeln!(
|
||||
stderr(),
|
||||
"sort: could not run compress program '{prog}': {}",
|
||||
strip_errno(&err)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user