sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit 989127e525794da87629287a26553f212e3a7388
parent fe3fc418380c3dae63a5da13376912f45599e5c3
Author: sin <sin@2f30.org>
Date:   Mon,  9 Feb 2015 16:10:00 +0000

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

Diffstat:
Mtail.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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: