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.
1 parent 8041772 commit 4f276f3Copy full SHA for 4f276f3
src/uu/users/src/users.rs
@@ -6,6 +6,7 @@
6
// spell-checker:ignore (paths) wtmp
7
8
use std::ffi::OsString;
9
+use std::io::{Write, stdout};
10
use std::path::Path;
11
12
use clap::builder::ValueParser;
@@ -73,7 +74,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
73
74
75
if !users.is_empty() {
76
users.sort();
- println!("{}", users.join(" "));
77
+ writeln!(stdout().lock(), "{}", users.join(" "))?;
78
}
79
80
Ok(())
0 commit comments