tail(1) ignores arguments after -c/b/l
Our tail tries to support the behaviour of the old Solaris tail, which would default to a value of 10 for -c, -b, and -l when one wasn't provided. In attempting to do so though, it ignores any values that follow. So if you do -c1, the value will be ignored. And if you do -c 1, then you'll get a message about the 1 file not existing. Both of these arguments are valid tail invocations.
The logic for supporting the default values needs to be improved to not ignore these arguments.
In addition to running the existing tail tests and those I've added, I've also installed a new COAL using a platform with a modified tail. I have also run the new, modified tests on FreeBSD to make sure that they run fine there, too.
Updated by Electric Monk almost 5 years ago
- Status changed from New to Closed
commit a02e855f6fd788720ab057ae4df3e837836f7629 Author: Cody Peter Mello <firstname.lastname@example.org> Date: 2017-10-05T22:53:54.000Z 8671 tail(1) ignores arguments after -c/b/l Reviewed by: Robert Mustacchi <email@example.com> Approved by: Gordon Ross <firstname.lastname@example.org>