aboutsummaryrefslogtreecommitdiff
path: root/toys/head.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/head.c')
-rw-r--r--toys/head.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/toys/head.c b/toys/head.c
index 87fbe62a..1d1e54a3 100644
--- a/toys/head.c
+++ b/toys/head.c
@@ -35,8 +35,9 @@ static void do_head(int fd, char *name)
if (toys.optc > 1) {
// Print an extra newline for all but the first file
- if (TT.file_no++) printf("\n");
+ if (TT.file_no++) xprintf("\n");
xprintf("==> %s <==\n", name);
+ xflush();
}
while (lines) {