| Summary: | Weird problem with 'more' on 4-1-STABLE | ||
|---|---|---|---|
| Product: | Base System | Reporter: | Dima Sivachenko <dima> |
| Component: | bin | Assignee: | ps |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | 3.3-RELEASE | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
Dima Sivachenko
2000-08-21 11:10:03 UTC
On Mon, Aug 21, 2000 at 01:58:02PM +0400, Dmitry S. Sivachenko wrote: [...] > cd /var/db/pkg/[any-package] > more +COMMENT > Missing filename (less --help for help) > more ./+COMMENT > You will get the content of '+COMMENT' file > > On FreeBSD-3.3-RELEASE `more +COMMENT` works as expected. > > 'cat' command on 4.1 has no such problem, > so it appeares to be 'more' problem. > This is because more(1) is now actually less(1): -- A command line argument of "--" marks the end of option arguments. Any arguments following this are interpreted as filenames. This can be useful when viewing a file whose name begins with a "-" or "+". + If a command line option begins with +, the remain- der of that option is taken to be an initial com- mand to less. For example, +G tells less to start at the end of the file rather than the beginning, and +/xyz tells it to start at the first occurrence of "xyz" in the file. -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age State Changed From-To: open->closed Asked and answered. The import of less was also mentioned in the release notes, so I don't think any more needs to be done in connection with this PR. State Changed From-To: closed->open David, could you look into this inconsistency? Responsible Changed From-To: freebsd-bugs->obrien Over to the maintainer. Responsible Changed From-To: obrien->ps Paul looks after less, not David. State Changed From-To: open->closed By now, the behavior is long-established, so this PR is obsolete. |