X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.9 required=5.0	tests=AWL,BAYES_00,FREEMAIL_FROM,RP_MATCHES_RCVD,SPF_HELO_PASS
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: carolus <worwor@bellsouth.net>
Subject: Re: Searching manpages for option codes, e.g. "--all"
Date: Tue, 29 Nov 2011 16:41:43 -0600
Lines: 29
Message-ID: <jb3n3d$p1a$1@dough.gmane.org>
References: <jb3jh8$uof$1@dough.gmane.org> <Pine.NEB.4.64.1111291549500.12571@panix2.panix.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1
In-Reply-To: <Pine.NEB.4.64.1111291549500.12571@panix2.panix.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 11/29/2011 3:56 PM, Tim McDaniel wrote:
> On Tue, 29 Nov 2011, carolus wrote:
>> After opening "man ls", trying to search for "--all" leads to
>> "Pattern not found (press RETURN)".
>
> My experiment agrees with that. Do you know why that happens -- what
> is it doing so "/--all" doesn't work?
>

No idea.  Apparently "man" invokes $PAGER, and in linux, "less" works as 
desired and "more" does not.  If you look at the .1 file, the option 
codes are scrambled with a lot of formatting codes that must be stripped 
out or ignored for search to work.


> Whether in an older default terminal or the new one, I've never had a
> problem with
> PAGER=/usr/bin/less
> export PAGER

You can set it, but that doesn't help.

> Further, on my system with little customization, the default man pager
> is less anyway, so (for example)
> man ls
> invokes less anyway.
>
Which explains why setting PAGER doesn't help in Cygwin.



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

