X-Recipient: archive-cygwin@delorie.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:reply-to:subject:to:references:from:message-id
	:date:mime-version:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=AKWywgRrHAE18rMq
	98xn8MhFrAp1ufRBii0139lX4FWPbwCNMaIjo+oTzz2ugNUuUoYJOdzMV+R0Y0eT
	a5I4EDIElESipUt5isJZ8DQ9z3GJJxu/zIkVKKuc0n/VLsBH0R/T6beseHOnGpP6
	2jQoHdz+pvi0TmLMaDS37osjii4=
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:reply-to:subject:to:references:from:message-id
	:date:mime-version:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=O6SSwNLELcsaAl75G5kC8s
	PqV0g=; b=k7ZMD5opemZ5lFM7KaTgLOWYJpFKjvn8oH6CnbuieSLGCO794Hc7Rs
	K520ts0DNOkRKMGkcVbt8+AjQZojRPF+lAOFo1jpC+nVbDcvPTWdj7Ub8K1x2/yj
	jk8fi9bzY5YEPLYK1xDYviTJfyrUIIVkQlouQthltaKZHRzYJispQ=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.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
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=disturbing, Take, H*Ad:D*ca, H*R:D*ca
X-HELO: smtp-out-so.shaw.ca
Reply-To: Brian.Inglis@SystematicSw.ab.ca
Subject: Re: manpage searches "^\s+keyword\s" vs. ???
To: cygwin@cygwin.com
References: <5C4E5F0F.2090403@tlinx.org> <1210066491.20190130214043@yandex.ru>
From: Brian Inglis <Brian.Inglis@SystematicSw.ab.ca>
Openpgp: preference=signencrypt
Message-ID: <a475b352-f323-09e6-cecb-d8cf6226de11@SystematicSw.ab.ca>
Date: Wed, 30 Jan 2019 17:55:21 -0700
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0
MIME-Version: 1.0
In-Reply-To: <1210066491.20190130214043@yandex.ru>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-IsSubscribed: yes

On 2019-01-30 11:40, Andrey Repin wrote:
>> I've always used "^\s+keyword\s" as a way to search for some keyword
>> starting a section.
> Welcome to the club.
>> On linux it still works, but on cygin it doesn't like '\s' as symbol for
>> white space.
>> Any idea why there might be a difference?
>> I note an option that could do similar in less -- '&pattern' turns OFF
>> single special characters, I tried that on linux and it turned off the '\s'
>> matching space.  That's nice..um how about other way?
>> Well didn't know if there might be some other op to go the other way, but
>> didn't see anything. any ideas?
> I've been puzzled by this since… forever, it seems.
> This is something in less, but all the `man less` says is "regular expression
> library provided by your system".
> I guess this is down to compilation options at this point.

The full class [[:space:]] works as expected.
Probably config options picking the BSD POSIX ERE library without char class esc
shortcuts, rather than allowing Glib, ICU, or PCRE ERE library with char class
esc shortcuts.

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.

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

