tail: Skip leading spaces in tail -n " +20"
This commit is contained in:
parent
fe3fc41838
commit
989127e525
2
tail.c
2
tail.c
|
@ -75,7 +75,7 @@ main(int argc, char *argv[])
|
||||||
case 'n':
|
case 'n':
|
||||||
lines = EARGF(usage());
|
lines = EARGF(usage());
|
||||||
n = MIN(llabs(estrtonum(lines, LLONG_MIN + 1, MIN(LLONG_MAX, SIZE_MAX))), SIZE_MAX);
|
n = MIN(llabs(estrtonum(lines, LLONG_MIN + 1, MIN(LLONG_MAX, SIZE_MAX))), SIZE_MAX);
|
||||||
if (lines[0] == '+')
|
if (strchr(lines, '+'))
|
||||||
tail = dropinit;
|
tail = dropinit;
|
||||||
break;
|
break;
|
||||||
ARGNUM:
|
ARGNUM:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user