From 7443e292be4068dd8770c186b67d480b1b06e754 Mon Sep 17 00:00:00 2001 From: oech3 <79379754+oech3@users.noreply.github.com> Date: Wed, 28 Jan 2026 16:08:47 +0900 Subject: [PATCH] nice > /dev/full panics --- src/uu/nice/src/nice.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uu/nice/src/nice.rs b/src/uu/nice/src/nice.rs index 78036649f..5c9192c96 100644 --- a/src/uu/nice/src/nice.rs +++ b/src/uu/nice/src/nice.rs @@ -8,7 +8,7 @@ use clap::{Arg, ArgAction, Command}; use libc::PRIO_PROCESS; use std::ffi::OsString; -use std::io::{Error, ErrorKind, Write}; +use std::io::{Error, ErrorKind, Write, stdout}; use std::num::IntErrorKind; use std::os::unix::process::CommandExt; use std::process; @@ -143,7 +143,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> { } None => { if !matches.contains_id(options::COMMAND) { - println!("{niceness}"); + writeln!(stdout(), "{niceness}")?; return Ok(()); } 10_i32