delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/09/02/03:26: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:mime-version:references:in-reply-to:from:date
:message-id:subject:to:content-type; q=dns; s=default; b=W2aL2VU
gcu1unL2jreVkP/Qwl40yGJzrIj69dGCO6IPzsnKuXAugPumlBiCupB7QE+BkvpW
+raTyRFEmIH8LvXF3hPK64O1xehH2oCHZDvw4nod4rxu9lafo2Nnz/NCcv7gacky
lnOr13rEb1FFYMNgF9y8Gqhct0k8ACYSwfBM=
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:mime-version:references:in-reply-to:from:date
:message-id:subject:to:content-type; s=default; bh=xgPwCgOZXuqn4
BqiBgs2IHIZRQU=; b=m3YVcLI0Fl4oiLByzNEs46fGWvC7tYF8/laHBDohpqVvc
uBHJT4QjzWdcp1zZ8r5KGMHKFhkoU3C5znlt+e/oYKePbzoglyekaiJwXXsx21nt
lFHjBzIyfhiXKahyrDZ9nVUMlDutX3YpG50tRST6MYZlqfjfHucgQJ1aEsyMD8=
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,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=january, January, wayne, walsh
X-HELO: brown.birch.relay.mailchannels.net
X-Sender-Id: dreamhost|x-authsender|dropbox AT opencoder DOT net
X-Sender-Id: dreamhost|x-authsender|dropbox AT opencoder DOT net
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|dropbox AT opencoder DOT net
X-MailChannels-Auth-Id: dreamhost
X-Little-Industry: 0cc516e05f74be25_1567409128047_3935151460
X-MC-Loop-Signature: 1567409128047:2932085555
X-MC-Ingress-Time: 1567409128047
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=opencoder.net; h= mime-version:references:in-reply-to:from:date:message-id:subject :to:content-type; s=opencoder.net; bh=EWg+ceWKrgKM4JYCbX8FgQ4Zs9 o=; b=cS4a3DEuYrhaRrve1bRcXCGw3DAtZe1IleUO2ehA9DAr0BFNfhtiZs9qQE tF5oa1/T9V9SH+Vde2+v6yRgs5E/GpBXnlH2FsH/GALZtZKg7I+HZosKDrH/0xxK iFDeX2mC/uj4ycwljh9rB6Zn+O/hNJB8NgSBuCbw5U+uQBGvw=
MIME-Version: 1.0
References: <5D6C6749 DOT 1080706 AT tlinx DOT org>
In-Reply-To: <5D6C6749.1080706@tlinx.org>
X-DH-BACKEND: pdx1-sub0-mail-a95
From: Wayne Davison <wayne AT opencoder DOT net>
Date: Mon, 2 Sep 2019 00:25:05 -0700
Message-ID: <CAHSx_SumgRmLs5RxjwbiyxyNv-c860g00VEZOoFkudzWLE3teg@mail.gmail.com>
Subject: Re: change in pattern matching in pager /usr/bin/less
To: cygwin <cygwin AT cygwin DOT com>
X-VR-OUT-STATUS: OK
X-VR-OUT-SCORE: 0
X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduvddrudeiledguddujecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecunecujfgurhepgghfjgfhfffkuffvtgesthdtredttddtjeenucfhrhhomhephggrhihnvgcuffgrvhhishhonhcuoeifrgihnhgvsehophgvnhgtohguvghrrdhnvghtqeenucffohhmrghinhepvgigvgdrhihouhenucfkphepvddtledrkeehrddvudelrddujeefnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdqhigsuddqfhdujeefrdhgohhoghhlvgdrtghomhdpihhnvghtpedvtdelrdekhedrvdduledrudejfedprhgvthhurhhnqdhprghthhephggrhihnvgcuffgrvhhishhonhcuoeifrgihnhgvsehophgvnhgtohguvghrrdhnvghtqedpmhgrihhlfhhrohhmpeifrgihnhgvsehophgvnhgtohguvghrrdhnvghtpdhnrhgtphhtthhopegthihgfihinhestgihghifihhnrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd
X-IsSubscribed: yes

On Sun, Sep 1, 2019 at 5:50 PM L A Walsh wrote:
> For some reason, the behavior of less has changed recently in regards to how
> it interprets characters like '\s' (whitespace).

Sadly, it's been compiled with POSIX regular expressions on Cygwin for
quite a while now. On Linux it is often compiled with GNU regex or
PCRE.

I started compiling my own version of less on Cygwin back in January
for this very reason. If you snag the source and run "./configure
--with-regex=pcre ; make" then you'll get a version of less.exe that
you can put somewhere early on your path (or in place of the stock
less.exe). You'll need the standard build tools installed (one way to
get those is to install cygport) plus some extra devel libraries, such
as libpcre-devel and libncurses-devel.

It would certainly be nice to have the PCRE regex as the standard in
the Cygwin version, though.

Running the Cygwin version:

$ /usr/bin/less --version
less 530 (POSIX regular expressions)
Copyright (C) 1984-2017  Mark Nudelman

Running my version:

$ less --version
less 530 (PCRE regular expressions)
Copyright (C) 1984-2017  Mark Nudelman

..wayne..

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