RE: Strange behavior about pattern matching on manual pages [FIXED]

From: Cy Schubert <Cy.Schubert_at_komquats.com>
Date: Thu, 14 Dec 2017 09:15:13 -0800
IIRC, as I scripted this and haven't looked at it for a long time: LESS=-MMs

---
Sent using a tiny phone keyboard.
Apologies for any typos and autocorrect.
Also, this old phone only supports top post. Apologies.

Cy Schubert
<Cy.Schubert_at_cschubert.com> or <cy_at_freebsd.org>
The need of the many outweighs the greed of the few.
---

-----Original Message-----
From: by
Sent: 06/12/2017 15:03
To: Alan Somers
Cc: freebsd-hackers_at_freebsd.org; Jamie Landeg-Jones; FreeBSD CURRENT
Subject: Re: Strange behavior about pattern matching on manual pages [FIXED]


> 在 2017年12月7日,06:53,Alan Somers <asomers_at_freebsd.org> 写道:
> 
> On Wed, Dec 6, 2017 at 3:35 PM, Jamie Landeg-Jones <jamie_at_catflap.org <mailto:jamie_at_catflap.org>> wrote:
> Alan Somers <asomers_at_freebsd.org <mailto:asomers_at_freebsd.org>> wrote:
> 
> > How about just setting MANPAGER=less in your environment?
> 
> Because some of us prefer "more"?
> 
> And as I said, it's related to searching using the more(1) command generally.
> 
> I was under the impression that fixing bugs in existing commands was a better
> solution than telling someone to simply use something else.
> 
> 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.
> 
> -Alan

I just test it in FreeBSD 11.1-RELEASE-p5

It works well when I change PAGER=more to PAGER=less 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=less ?


by
_______________________________________________
freebsd-hackers_at_freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe_at_freebsd.org"
Received on Thu Dec 14 2017 - 16:15:21 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:14 UTC