X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Gmane User <fma@doe.carleton.ca>
Subject:  Re: whole-word matches searches of mailing list archive & packages
Date:  Sun, 29 Jan 2006 02:41:39 -0500
Lines: 25
Message-ID: <drhrrc$vdh$1@sea.gmane.org>
References:  <43DBD7F5.5050100@doe.carleton.ca> <43DBDF72.D25F24CC@dessent.net>
Mime-Version:  1.0
Content-Type:  text/plain; charset=ISO-8859-1
Content-Transfer-Encoding:  7bit
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
In-Reply-To: <43DBDF72.D25F24CC@dessent.net>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@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

Brian Dessent wrote:
> Fred Ma wrote:
>>I was searching for whether the current cygwin has the "stat" command.
>>This is for future reference, since I am unable to update my old
>>cygwin installation at the moment.  I eventually found that "stat"
>>resides in coreutils, but I was wondering if there is a way to specify
>>whole-word matches when searching either the mailing list archive or
>>while performing a Setup Package Search.  The reason is that some
>>words are very common as partial words, so searches tend to come up
>>with many unrelated hits.  Thanks.
>
>
> The search is a regular expression.  If you are searching for a binary
> of a particular name, use "/foo\.exe" which will anchor the match so
> that it can only match a command by that name, i.e.
> /some/path/to/foo.exe.  See "man pcre" for more information.

Thanks, Brian.  "man pcrepattern" cleared this up, and I found that
I could do a package search for (say) \bstat\.exe\b.  It doesn't
seem to work on a search of the mailing list archive, though.  A
search for stat.exe, stat\.exe, and "stat.exe" seems to find
pages containing "stat" and "exe" rather than "stat.exe".  But
I appreciate the pointer to PCRE for the package search.

Fred


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

