delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/09/02/09:33:24

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:references:to:subject
:content-type; q=dns; s=default; b=v3q1HgWDaFDaGQRvAa1Akci69zHM3
v4quvE1JjhhST0HVNzwy33Vk+tN5xDJPYZaIZdWRXjg2aSZ3Nq+DtAEn20stKK3m
3j1KOYUvex3KTh0e2FlRZB3bl7U8fMncKtkLTpJbB5QcubYOw6UKcil/Gg9iQLlI
7vcbctcIRPFz4k=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:references:to:subject
:content-type; s=default; bh=UsXtmFwnBc7mZbctHzgCTeUp9hM=; b=azI
GTov9iTWBYLmkGLoHbczH9i0ASfqWjZbTdatUSz7YZ6ramopy6zc0jqm3zpclSi9
tHQu0W7fDDrw4GteiWU5dJumubHdr/iI6++zHdoUG6t1zqmr2PEO2lp7ZFN6uVdy
LNWICO2iPh/GAbgeT5HoDubEGlJemTZ809ipAR1Y=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=ere, HX-HELO:sk:mail-ot, HX-Received:6830, H*M:1c69fb81
X-HELO: mail-ot1-f42.google.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:references:to:subject:user-agent; bh=3uIj0h/BE+c9P4VtebMmTdHr977hDCNoO2Dk30THA6k=; b=WXhv6Us9Bphnb0g49SpfWqLNocO1ZWoRqRs9C7JYSJXlz1oxyPizH9l/d5FzKau6E+ lTZN32FR69zafpVoJUIW4ej04S7tjnajcrHSzPdUK4qXh459pFlLf+H5G0Vh/lu6PAfw 0TcPsn3GGV70MsqRZin78erwILKF96SwswAUCk+paq1DEwRFzd1mghJh4f3YSTzrBPs3 sJ1FkOCXB2durOIWxkVI99zkm9WPYwtlctk6FA6dgYsB9HXh+kLuNspZL47ZRtD7UsmX x2G2ayFAZY560oUkxfzP28LPL243pOj9TfP225UBUzR319NBITHcBkXSqHJbC8F/gAcZ Gkbg==
Message-ID: <5d6d19eb.1c69fb81.8f85c.4a8f@mx.google.com>
Date: Mon, 02 Sep 2019 06:32:27 -0700 (PDT)
From: Steven Penny <svnpenn AT gmail DOT com>
References: <5D6C6749 DOT 1080706 AT tlinx DOT org>
To: cygwin AT cygwin DOT com
Subject: Re: change in pattern matching in pager /usr/bin/less
User-Agent: Suede Mail/2.8.0 (github.com/cup/suede)

On Sun, 01 Sep 2019 17:50:17, L A Walsh wrote:
> part of this is that the new cygwin less appears to use Obsolete REs
> that don't support '+'.  That may be a compile flag.
> 
> I don't know why \s is not working, however, 'awk' used to be the definitive
> Extended (modern) RE reference and does use \s for whitespace.
> 
> My  linux less is at version 458 (POSIX RegEx)
> my cygwin less is at version 530 (POSIX RegEX)

I have same version as you:

    $ less --version
    less 530 (POSIX regular expressions)

"+" is defined with PCRE, but also under ERE, which is what is used by "awk" and
"grep -E". Its only BRE that doesnt define "+". Not sure why this isnt working
for you but my less uses ERE. Another syntax under ERE is "{1,}", but that wont
help you if your ERE is missing.

In regard to "\s", thats not defined by BRE or ERE, so you would need PCRE for
that. Workaround is to use "[[:blank:]]", "[[:space]]", or simply use the space
character. I havent seen many man pages using tabs. For example doing "man man"
and searching for "[[:cntrl:]]" returns nothing.


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