Bug #8671
closedtail(1) ignores arguments after -c/b/l
100%
Description
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 6 years ago
- Status changed from New to Closed
git commit a02e855f6fd788720ab057ae4df3e837836f7629
commit a02e855f6fd788720ab057ae4df3e837836f7629 Author: Cody Peter Mello <cody.mello@joyent.com> Date: 2017-10-05T22:53:54.000Z 8671 tail(1) ignores arguments after -c/b/l Reviewed by: Robert Mustacchi <rm@joyent.com> Approved by: Gordon Ross <gwr@nexenta.com>