From owner-freebsd-hackers@freebsd.org Wed Dec 6 23:03:26 2017 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5A33DE8F519; Wed, 6 Dec 2017 23:03:26 +0000 (UTC) (envelope-from by@meetlost.com) Received: from meetlost.com (freebsd.meetlost.com [IPv6:2403:2500:8000:1::962]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.meetlost.com", Issuer "mail.meetlost.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 0952D66F94; Wed, 6 Dec 2017 23:03:25 +0000 (UTC) (envelope-from by@meetlost.com) Received: from [192.168.1.102] ([163.125.126.145]) (authenticated bits=0) by meetlost.com (8.15.2/8.15.2) with ESMTPSA id vB6N2wUN052275 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 7 Dec 2017 07:02:59 +0800 (CST) (envelope-from by@meetlost.com) From: by Message-Id: Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: Strange behavior about pattern matching on manual pages [FIXED] Date: Thu, 7 Dec 2017 07:03:13 +0800 In-Reply-To: Cc: Jamie Landeg-Jones , "freebsd-hackers@freebsd.org" , FreeBSD CURRENT To: Alan Somers References: <620CD9B7-201A-46FD-8C9D-DD8DDA3A05C3@meetlost.com> <201712062204.vB6M4B03026339@donotpassgo.dyslexicfish.net> <201712062235.vB6MZlQv034650@donotpassgo.dyslexicfish.net> X-Mailer: Apple Mail (2.3273) Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Dec 2017 23:03:26 -0000 > =D4=DA 2017=C4=EA12=D4=C27=C8=D5=A3=AC06:53=A3=ACAlan Somers = =D0=B4=B5=C0=A3=BA >=20 > On Wed, Dec 6, 2017 at 3:35 PM, Jamie Landeg-Jones > wrote: > Alan Somers > 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=