delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/01/30/14:34:48

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:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=aXEvTWb97F0LVW2dTcwrwF4CoaxHKpny6O60C+PDiceZEAATUthdU
6DG6Y1Bk3r/qQuw3ChirzwpvHtxX2yB/xEyyafu2Zbzy46HTlDNaPFrULJ0omPYx
pAKyrhEPMYe74P57IC+ow2IvDn6RScS5k25Ehb6zX2YcgukfiwJS+0=
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:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=SspmMJtrrPwiWTZDet3yhe46BEo=; b=PRfpJZgeXbL72v23iDmshulavhH/
nd7y1rVlPvLb3yydi+f+Nlq4GbkmVrtWOsjGVoOSeUr7ZCyws2lNzP36FbwBv6KB
MlkPqAauINsYjwCm9Mte+24ajun9SUPwZ6Og35+3QZyW9lsyBD4O0qJXc/x0O2Ho
B6RpvU1pAYINWe0=
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=-100.9 required=5.0 tests=BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=expanding
X-HELO: mout.kundenserver.de
Date: Wed, 30 Jan 2019 20:34:33 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: manpage searches "^\s+keyword\s" vs. ???
Message-ID: <20190130193433.GN3912@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <5C4E5F0F DOT 2090403 AT tlinx DOT org> <1210066491 DOT 20190130214043 AT yandex DOT ru> <c8f36794-db4a-8148-0547-eaad351c7795 AT redhat DOT com>
MIME-Version: 1.0
In-Reply-To: <c8f36794-db4a-8148-0547-eaad351c7795@redhat.com>
User-Agent: Mutt/1.10.1 (2018-07-13)

--j6zkAHxOZJkiczrA
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Jan 30 13:09, Eric Blake wrote:
> On 1/30/19 12:40 PM, Andrey Repin wrote:
>=20
> >=20
> > I've been puzzled by this since=E2=80=A6 forever, it seems.
> > This is something in less, but all the `man less` says is "regular expr=
ession
> > library provided by your system".
>=20
> \s is a non-standard regex extension - glibc provides it, Cygwin has not
> (at least, historically).  POSIX provides [[:space:]] as a portable
> alternative (although not all libc have implemented all of POSIX yet),
> but is annoyingly long to type.
>=20
> Similarly, BSD regex (which is where Cygwin derives its regex from)
> supports the non-standard regex extension [[:<:]] as a word boundary,
> while glibc has the same feature but spelled \<.  I also seem to recall
> a patch in the past to teach Cygwin to respect \< by expanding it to
> [[:<:]] before calling into the BSD-derived code (although I couldn't
> actually find one in a quick search); a similar patch to expand \s into
> [[:space:]] would be a reasonable idea.
>=20
> > I guess this is down to compilation options at this point.
>=20
> Not so much compilation options of man and less, but rather the code
> used in Cygwin itself for handling regex.

FreeBSD code since we can't use glibc code for licensing reasons.

As usual: Patches welcome!  (Even a complet replacement wouldn't hurt
as long as licensing is no issue)


Corinna

--=20
Corinna Vinschen
Cygwin Maintainer

--j6zkAHxOZJkiczrA
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlxR/EkACgkQ9TYGna5E
T6BHnw//Vjd+Bf8OZNsn3jGX0cHR4KsK1Lo9OISKdyFj1AIAQr7oTFAYH212Yh8O
DLe+00uSOUM9xmYxnl/Rm+5DkfDgwOwYpWq5bqTtVLDsUUnN+ZhxPG13NTaPVytX
l2hqsbEyM62Iw0XC4cutL3Tlrqe6OUZ2RHNfsuNXtBF5qDyrDQuzJo9eqqyhzaxZ
kn2nX8wOLgeHOHCauTKJM9KiVonnXDmwJc4FUvB4WZdUZhx0VlEBmAw45CfT6vTp
VG07laBEX4mNxn7xFRd4iXtHiSs8dKK57JIXSNQ8lKx8u7D41fINXOFYLo2d+iLQ
+L2QSMm/SvZXX5fVcMlzXF9i28pHNxXNQcUO/gOKDyux20Mc3ZETuXvQz3ACb6vl
hbIFXMwHK/5hl/NfBVSSOyA5ZU5kq+DqeoxXXuiAPMGbykmdbyxt9V3WOvXNkHTD
KkY8sqV5OOv8aWfubYZiRTByYsFt7+zGbbpCZ2mNB7Z3eE68rnQUp0/pazI2qptb
MXmNnqYtOe5SXNevegkx+MRAi1cH++OXOmdX6mV75dfu56ONCrvEfCfK/zW2XZ7o
UeLZ/korwloZtjzPVPfX4Jf4+m0JlQ0fNY7gA9Nn26spOBskN7tY+XGnR0KCYrJ+
lXyd60rCqpfz19lQkmS3RbDpML3RP+nZzkAxq3B/kDTwWxeag/k=
=uGBX
-----END PGP SIGNATURE-----

--j6zkAHxOZJkiczrA--

- Raw text -


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