Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Aug 2000 03:30:03 -0700 (PDT)
From:      Ruslan Ermilov <ru@sunbay.com>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/20742: Weird problem with 'more' on 4-1-STABLE
Message-ID:  <200008211030.DAA35387@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/20742; it has been noted by GNATS.

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
 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200008211030.DAA35387>