delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/11/29/17:42:30

X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com
From: carolus <worwor AT bellsouth DOT 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 AT dough DOT gmane DOT org> <Pine DOT NEB DOT 4 DOT 64 DOT 1111291549500 DOT 12571 AT panix2 DOT panix DOT com>
Mime-Version: 1.0
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 AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019