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 Subject: Re: Searching manpages for option codes, e.g. "--all" Date: Tue, 29 Nov 2011 16:41:43 -0600 Lines: 29 Message-ID: References: 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: X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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