Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Dec 2017 07:03:13 +0800
From:      by <by@meetlost.com>
To:        Alan Somers <asomers@freebsd.org>
Cc:        Jamie Landeg-Jones <jamie@catflap.org>, "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>, FreeBSD CURRENT <freebsd-current@freebsd.org>
Subject:   Re: Strange behavior about pattern matching on manual pages [FIXED]
Message-ID:  <CB226471-9F1F-4690-9C1D-BF9639983EF5@meetlost.com>
In-Reply-To: <CAOtMX2gD9VKSPaP_471d5t-7jfGqaRbB9-z9oo4t6LUu=y00cg@mail.gmail.com>
References:  <620CD9B7-201A-46FD-8C9D-DD8DDA3A05C3@meetlost.com> <201712062204.vB6M4B03026339@donotpassgo.dyslexicfish.net> <CAOtMX2hWLefYvC51w=1bb2=TodnkhjB2jH9Zb9xKFmKORxWvjQ@mail.gmail.com> <201712062235.vB6MZlQv034650@donotpassgo.dyslexicfish.net> <CAOtMX2gD9VKSPaP_471d5t-7jfGqaRbB9-z9oo4t6LUu=y00cg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

> =D4=DA 2017=C4=EA12=D4=C27=C8=D5=A3=AC06:53=A3=ACAlan Somers =
<asomers@freebsd.org> =D0=B4=B5=C0=A3=BA
>=20
> On Wed, Dec 6, 2017 at 3:35 PM, Jamie Landeg-Jones <jamie@catflap.org =
<mailto:jamie@catflap.org>> wrote:
> Alan Somers <asomers@freebsd.org <mailto:asomers@freebsd.org>> wrote:
>=20
> > How about just setting MANPAGER=3Dless in your environment?
>=20
> Because some of us prefer "more"?
>=20
> And as I said, it's related to searching using the more(1) command =
generally.
>=20
> I was under the impression that fixing bugs in existing commands was a =
better
> solution than telling someone to simply use something else.
>=20
> Yes, it certainly is.  Are you sure this is actually a bug in less, or =
is it just weird-but-intended behavior when less is emulating some old =
version of more?  It would be worth comparing our less sources to =
upstream's to see what differences have crept in, and svn blaming them =
to see why.
>=20
> -Alan

I just test it in FreeBSD 11.1-RELEASE-p5

It works well when I change PAGER=3Dmore to PAGER=3Dless before man(1).

And I found more(1) and less(1) is the same thing(they have the same =
inode number laying in fs), may be just different command name, =
different behavior.

If it is emulating more(1) behavior by less(1), why not just replace =
default PAGER=3Dless ?


by=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CB226471-9F1F-4690-9C1D-BF9639983EF5>