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:mime-version:to:subject :content-type:content-transfer-encoding; q=dns; s=default; b=CME sL95Eo0iwf/+Y9GvYCcDzHZhzq/CTFahgCq3mjgNAZjCM2XGEM9MdYJZmv5uLyW4 iVXg+7ZZTGCRCvoj85wgJ0t2ugbC+BDT9wT5qxQbi7/68GFiwFinmxXF5eTTjoIy YGTLmCgh8Y9TBj7p6ND+iS8u0ZElpueD4iWKk7kg= 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:mime-version:to:subject :content-type:content-transfer-encoding; s=default; bh=dczOUoJFG yI2lgwuDKlq5OXg/s0=; b=KDSKS5OzDexIAeRI9H90E+oGh0AgABLeTblaMZRd4 0TJPwUiZgY/2iE7/axWZ25r9KBVVv/D7xtWCHZWb6iKVeV/8pHAZXkIwcJYtte6r 2hsReD5PRg9SRgQWt3pZ5ZuV0xsdW2oPIDClfNoEgPSuHMdKG8Qu2cyuSQJmfb0V go= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=-3.3 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.1 spammy=1st, HX-Languages-Length:1435, topic, saying X-HELO: Ishtar.sc.tlinx.org Message-ID: <5D6C6749.1080706@tlinx.org> Date: Sun, 01 Sep 2019 17:50:17 -0700 From: L A Walsh User-Agent: Thunderbird MIME-Version: 1.0 To: "cygwin AT cygwin DOT com" Subject: change in pattern matching in pager /usr/bin/less Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes For some reason, the behavior of less has changed recently in regards to how it interprets characters like '\s' (whitespace). Unlike previous versions which worked to use '\s' for whitespace and use '+' for '1 or more', there seems to be nothing for \s and to use '+' you would need *. This puts the cygwin 'less' at variance with the version I'm using on linux. 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) It could be the libraries they are linking into for RE's. Though both appear to use the Gnu regex stuff. Note, I'm not just saying cygwin less is different from linux less, but also that the cygwin less is different from how it used to be. Regularly when looking at a manpage, I use the search string: ^\s+topic\s to find header words or cmds, etc. I.e. it starts on a line by itself and has multiple whitespace characters before it and 1 after. I may need to repeat the search a few times, as the word searched for can also be 1st on a line. Like to find 'typeset', I'd use '^\s+typeset\s'. That no longer works in cygwin. Idea? Fix please? -- 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