This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: manpage searches "^\s+keyword\s" vs. ???
- From: Andrey Repin <anrdaemon at yandex dot ru>
- To: L A Walsh <cygwin at tlinx dot org>, cygwin at cygwin dot com
- Date: Wed, 30 Jan 2019 21:40:43 +0300
- Subject: Re: manpage searches "^\s+keyword\s" vs. ???
- References: <5C4E5F0F.2090403@tlinx.org>
- Reply-to: cygwin at cygwin dot com
Greetings, L A Walsh!
> 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.
--
With best regards,
Andrey Repin
Wednesday, January 30, 2019 21:36:27
Sorry for my terrible english...
--
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