Bug 874
Summary: | tail -(a number) doesn't work if more than one file is named | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Joe Harrington <jhmail> |
Component: | textutils | Assignee: | Cristian Gafton <gafton> |
Status: | CLOSED WONTFIX | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 5.2 | CC: | jhmail |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 1999-03-23 01:45:41 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Joe Harrington
1999-01-18 23:34:02 UTC
This report has been verified in the test lab to be true. You can type for example: tail -3 /var/log/messages and it will work properly but if you type for example: tail -3 /var/log/messages /var/log/cron it will complain of -3 being an illegal argument. On the other hand the logn way will work properly: tail -n 3 /var/log/messages /var/log/cron This problem goes back to 4.2 Red Hat. While the patch at the end of this fixes the problem, there is comment which makes it quite clear that only one filename should be passed to tail when obsolete arguments are used. The Single Unix Spec only cares about tail taking a single argument, so this matches. I'm not going to change this, as the behavior was intended by the author. --- tail.c.ewt Mon Mar 22 20:43:50 1999 +++ tail.c Mon Mar 22 20:44:08 1999 @@ -876,7 +876,7 @@ /* With the obsolescent form, there is one option string and at most one file argument. */ - if (argc < 2 || argc > 3) + if (argc < 2) return 0; /* If I were implementing this in Perl, the rest of this function Commits pushed to master at https://github.com/ManageIQ/cfme https://github.com/ManageIQ/cfme/commit/931d3772076f842d66f7c9b68fcb5ec0a9e6480f Use target.class.base_model to get the correct children event that is based on the target's base model. Issue #874 https://github.com/ManageIQ/cfme/commit/8314066f0f673833532c6c3941920abb9891c8e2 Change the spec's description. Issue #874 |