Skip to content

Commit bf955a9

Browse files
authored
nice -n . 2>/dev/full does not abort (#10762)
1 parent d28a44e commit bf955a9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/uucore_procs/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ pub fn main(args: TokenStream, stream: TokenStream) -> TokenStream {
5959
uucore::show_error!("{s}");
6060
}
6161
if e.usage() {
62-
eprintln!("Try '{} --help' for more information.", uucore::execution_phrase());
62+
use std::io::{stderr, Write as _};
63+
let _ = writeln!(stderr(),"Try '{} --help' for more information.", uucore::execution_phrase());
6364
}
6465
e.code()
6566
}

0 commit comments

Comments
 (0)