mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
Add newline when printing lines.
This commit is contained in:
+1
-1
@@ -170,7 +170,7 @@ fn head<T: Read>(reader: &mut BufReader<T>, count: usize, use_bytes: bool) -> bo
|
||||
}
|
||||
} else {
|
||||
for line in reader.lines().take(count) {
|
||||
if !pipe_print!("{}", line.unwrap()) {
|
||||
if !pipe_println!("{}", line.unwrap()) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user