tail: exit without reading input if would never output
commit7abf99e1907b1b05cb45eacaa98bfa73efe0ab92
authorPádraig Brady <P@draigBrady.com>
Tue, 26 Mar 2013 00:36:01 +0000 (26 00:36 +0000)
committerPádraig Brady <P@draigBrady.com>
Thu, 4 Apr 2013 02:01:48 +0000 (4 03:01 +0100)
tree5fa68cc019b4c74f61b9c4843ce04715d389adcb
parentf7867e73caac82349e5623d04e46aaf784778644
tail: exit without reading input if would never output

* src/tail.c (main): If -n0 or -c0 were specified without -f,
then no data would ever be output, so exit without reading input.
* tests/tail-2/tail-n0f.sh: Augment the related test with this case.
src/tail.c
tests/tail-2/tail-n0f.sh