Bug 20742

Summary: Weird problem with 'more' on 4-1-STABLE
Product: Base System Reporter: Dima Sivachenko <dima>
Component: binAssignee: 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

How-To-Repeat: 
	
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.
Comment 1 Ruslan Ermilov 2000-08-21 11:21:27 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
Comment 2 Sheldon Hearn freebsd_committer freebsd_triage 2000-08-21 11:37:04 UTC
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.
Comment 3 Sheldon Hearn freebsd_committer freebsd_triage 2000-08-21 18:24:18 UTC
State Changed
From-To: closed->open

David, could you look into this inconsistency? 


Comment 4 Sheldon Hearn freebsd_committer freebsd_triage 2000-08-21 18:24:18 UTC
Responsible Changed
From-To: freebsd-bugs->obrien

Over to the maintainer.
Comment 5 Sheldon Hearn freebsd_committer freebsd_triage 2000-08-22 09:14:54 UTC
Responsible Changed
From-To: obrien->ps

Paul looks after less, not David.
Comment 6 Mark Linimon freebsd_committer freebsd_triage 2007-07-31 06:37:41 UTC
State Changed
From-To: open->closed

By now, the behavior is long-established, so this PR is obsolete.