From 3ccfa1877dd43465fd105e1a8ba5b4b0c487ccc9 Mon Sep 17 00:00:00 2001 From: FRIGN Date: Sun, 22 Mar 2015 17:38:22 +0100 Subject: [PATCH] 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! --- nl.c | 1 - 1 file changed, 1 deletion(-) diff --git a/nl.c b/nl.c index 10fe6d4..05c1a2a 100644 --- a/nl.c +++ b/nl.c @@ -57,7 +57,6 @@ nl(const char *fname, FILE *fp) if (getsection(buf, §ion)) { if ((section >= oldsection) && !pflag) number = startnum; - putchar('\n'); continue; }