Don't print section-control-lines as empty lines in nl(1)

GNU coreutils may behave this way, but one can think of these lines
as consumed control lines.
Fuck GNU!
This commit is contained in:
FRIGN 2015-03-22 17:38:22 +01:00
parent 377b5499e9
commit 3ccfa1877d

1
nl.c
View File

@ -57,7 +57,6 @@ nl(const char *fname, FILE *fp)
if (getsection(buf, &section)) { if (getsection(buf, &section)) {
if ((section >= oldsection) && !pflag) if ((section >= oldsection) && !pflag)
number = startnum; number = startnum;
putchar('\n');
continue; continue;
} }