From dima@chg.ru  Mon Aug 21 03:04:30 2000
Return-Path: <dima@chg.ru>
Received: from chg.ru (netserv1.chg.ru [193.233.46.3])
	by hub.freebsd.org (Postfix) with ESMTP id 7464D37B423
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 21 Aug 2000 03:03:22 -0700 (PDT)
Received: (from dima@localhost)
	by chg.ru (8.9.3/8.9.3) id NAA16665;
	Mon, 21 Aug 2000 13:58:02 +0400 (MSD)
	(envelope-from dima)
Message-Id: <200008210958.NAA16665@chg.ru>
Date: Mon, 21 Aug 2000 13:58:02 +0400 (MSD)
From: "Dmitry S. Sivachenko" <dima@Chg.RU>
Reply-To: dima@Chg.RU
To: FreeBSD-gnats-submit@freebsd.org
Subject: Weird problem with 'more' on 4-1-STABLE
X-Send-Pr-Version: 3.2

>Number:         20742
>Category:       bin
>Synopsis:       Weird problem with 'more' on 4-1-STABLE
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    ps
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 21 03:10:03 PDT 2000
>Closed-Date:    Tue Jul 31 05:40:34 GMT 2007
>Last-Modified:  Tue Jul 31 05:40:34 GMT 2007
>Originator:     Dmitry S. Sivachenko
>Release:        FreeBSD 3.3-RELEASE i386
>Organization:
>Environment:

	
4.1-STABLE as of 17 Aug.

>Description:

	

>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.

>Fix:
	
	


>Release-Note:
>Audit-Trail:

From: Ruslan Ermilov <ru@sunbay.com>
To: "Dmitry S. Sivachenko" <dima@Chg.RU>
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: bin/20742: Weird problem with 'more' on 4-1-STABLE
Date: Mon, 21 Aug 2000 13:21:27 +0300

 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 
State-Changed-By: sheldonh 
State-Changed-When: Mon Aug 21 03:37:04 PDT 2000 
State-Changed-Why:  
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. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20742 
State-Changed-From-To: closed->open 
State-Changed-By: sheldonh 
State-Changed-When: Mon Aug 21 10:24:18 PDT 2000 
State-Changed-Why:  
David, could you look into this inconsistency? 


Responsible-Changed-From-To: freebsd-bugs->obrien 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Mon Aug 21 10:24:18 PDT 2000 
Responsible-Changed-Why:  
Over to the maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20742 
Responsible-Changed-From-To: obrien->ps 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Tue Aug 22 01:14:54 PDT 2000 
Responsible-Changed-Why:  
Paul looks after less, not David. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20742 
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Tue Jul 31 05:37:41 UTC 2007 
State-Changed-Why:  
By now, the behavior is long-established, so this PR is obsolete. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20742 
>Unformatted:
