From owner-freebsd-bugs Mon Aug 21 3:30: 6 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id D53E537B423 for ; Mon, 21 Aug 2000 03:30:03 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id DAA35387; Mon, 21 Aug 2000 03:30:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Mon, 21 Aug 2000 03:30:03 -0700 (PDT) Message-Id: <200008211030.DAA35387@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Ruslan Ermilov Subject: Re: bin/20742: Weird problem with 'more' on 4-1-STABLE Reply-To: Ruslan Ermilov Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/20742; it has been noted by GNATS. From: Ruslan Ermilov To: "Dmitry S. Sivachenko" 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