[hackers] [sbase] Don't print section-control-lines as empty lines in nl(1) || FRIGN

From: <git_AT_suckless.org>
Date: Mon, 23 Mar 2015 18:35:49 +0100 (CET)

commit 805832befcb240920dac2a26a929f6b1ee47a8c0
Author: FRIGN <dev_AT_frign.de>
Date: Sun Mar 22 17:38:22 2015 +0100

    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!

diff --git a/nl.c b/nl.c
index 10fe6d4..05c1a2a 100644
--- a/nl.c
+++ b/nl.c
_AT_@ -57,7 +57,6 @@ nl(const char *fname, FILE *fp)
                 if (getsection(buf, &section)) {
                         if ((section >= oldsection) && !pflag)
                                 number = startnum;
- putchar('\n');
                         continue;
                 }
 
Received on Mon Mar 23 2015 - 18:35:49 CET

This archive was generated by hypermail 2.3.0 : Mon Mar 23 2015 - 18:36:19 CET