delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/11/29/16:57:04

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,MISSING_HEADERS,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Date: Tue, 29 Nov 2011 15:56:24 -0600 (CST)
From: Tim McDaniel <tmcd AT panix DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: Searching manpages for option codes, e.g. "--all"
In-Reply-To: <jb3jh8$uof$1@dough.gmane.org>
Message-ID: <Pine.NEB.4.64.1111291549500.12571@panix2.panix.com>
References: <jb3jh8$uof$1 AT dough DOT gmane DOT org>
MIME-Version: 1.0
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 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?

> Inquiring on comp.unix.shell, I was told that for this kind of
> search to work properly in linux , one must set PAGER=less. However,
> that does not seem to work in Cygwin, at least using the old default
> terminal. Is there a workaround?

Whether in an older default terminal or the new one, I've never had a
problem with
     PAGER=/usr/bin/less
     export PAGER
I do them as separate statements because older Bourne shells do not
allow the combined form
     export PAGER=/usr/bin/less
But bash does.

Further, on my system with little customization, the default man pager
is less anyway, so (for example)
     man ls
invokes less anyway.

-- 
Tim McDaniel, tmcd AT panix DOT com

--
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