commit 989127e525794da87629287a26553f212e3a7388
Author: sin <[email protected]>
Date:   Mon Feb 9 16:10:00 2015 +0000

    tail: Skip leading spaces in tail -n "    +20"

diff --git a/tail.c b/tail.c
index 2265bac..984de9c 100644
--- a/tail.c
+++ b/tail.c
@@ -75,7 +75,7 @@ main(int argc, char *argv[])
        case 'n':
                lines = EARGF(usage());
                n = MIN(llabs(estrtonum(lines, LLONG_MIN + 1, MIN(LLONG_MAX, 
SIZE_MAX))), SIZE_MAX);
-               if (lines[0] == '+')
+               if (strchr(lines, '+'))
                        tail = dropinit;
                break;
        ARGNUM:

Reply via email to