[hackers] [sbase] tail: Skip leading spaces in tail -n " +20" || sin
commit 989127e525794da87629287a26553f212e3a7388
Author: sin <sin_AT_2f30.org>
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
_AT_@ -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:
Received on Tue Mar 24 2015 - 23:53:39 CET
This archive was generated by hypermail 2.3.0
: Wed Mar 25 2015 - 00:08:41 CET