Small fix in head.c
Only deal with this newline-handling when many is true.
This commit is contained in:
parent
ab26b5583e
commit
edba90934d
3
head.c
3
head.c
@ -55,10 +55,11 @@ main(int argc, char *argv[])
|
|||||||
ret = 1;
|
ret = 1;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if (many) {
|
||||||
if (newline)
|
if (newline)
|
||||||
putchar('\n');
|
putchar('\n');
|
||||||
if (many)
|
|
||||||
printf("==> %s <==\n", *argv);
|
printf("==> %s <==\n", *argv);
|
||||||
|
}
|
||||||
newline = 1;
|
newline = 1;
|
||||||
head(fp, *argv, n);
|
head(fp, *argv, n);
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
|
Loading…
Reference in New Issue
Block a user