I can't get searching in more to work.
Try something like
It gives an error "Pattern not found".
It should go to the line matching "MAILING" (I think it positions the match
three lines from the top by default).
The problem seems to exist for upper or lower case search strings.
It's working OK on a RHEL4 box.
# rpm -qf /bin/more
Reproduced and confirmed with vanilla build of upstream 2.13.1-rc2.
Also confirmed in upstream git.
Subject: inability to search in 'more'
The documented search facility of 'more' is broken. This was reported
to Fedora as https://bugzilla.redhat.com/show_bug.cgi?id=428218 and I
have confirmed that the behavior persists in in a git snapshot as of a
few minutes ago, as well as in 2.13.1-rc2.
For the reporter, I'm sure that you know you can use 'less' in the meantime.
It's much more full-featured, as well :)
Also changed the component to reflect util-linux-ng
I have verified that the behavior is as expected. If instead of MAILING in your
test, you search for CFLAG, you'll find the correct behavior both in Fedora and
upstream, based on the below explanation. Closing NOTABUG.
Date: Thu, 10 Jan 2008 13:11:37 +0100
From: Karel Zak <email@example.com>
To: Jon Stanley <firstname.lastname@example.org>
On Thu, Jan 10, 2008 at 01:53:15AM -0500, Jon Stanley wrote:
> The documented search facility of 'more' is broken. This was reported
> to Fedora as https://bugzilla.redhat.com/show_bug.cgi?id=428218 and I
> have confirmed that the behavior persists in in a git snapshot as of a
> few minutes ago, as well as in 2.13.1-rc2.
IMHO the behaviour is correct. I've tested more(8) on Fedora 7,
RHEL3.7 and Debian 2.2 and I see the same behaviour everywhere.
> Try something like
> more /usr/share/doc/util-linux-ng-2.13/README<Enter>
> It gives an error "Pattern not found".
Sure, more(8) doesn't looking for the pattern everywhere in the file
(unlike less(8)). The search facility works between the current
position and end of file. The current position is at end of screen.
BTW, the file more.c is unbelievable unreadable junk...
Karel Zak <email@example.com>
Thanks for the explanation Karel.
I'm used to more searching the whole page, but quite likely those systems have a
different version of more, or even less pretending to be more.