We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7d63363 + 7443e29 commit e6e2b28Copy full SHA for e6e2b28
1 file changed
src/uu/nice/src/nice.rs
@@ -8,7 +8,7 @@
8
use clap::{Arg, ArgAction, Command};
9
use libc::PRIO_PROCESS;
10
use std::ffi::OsString;
11
-use std::io::{Error, ErrorKind, Write};
+use std::io::{Error, ErrorKind, Write, stdout};
12
use std::num::IntErrorKind;
13
use std::os::unix::process::CommandExt;
14
use std::process;
@@ -143,7 +143,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
143
}
144
None => {
145
if !matches.contains_id(options::COMMAND) {
146
- println!("{niceness}");
+ writeln!(stdout(), "{niceness}")?;
147
return Ok(());
148
149
10_i32
0 commit comments