From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Steele Scott Newsgroups: gmane.emacs.help Subject: how to pass \b to grep on w32? Date: Wed, 14 Sep 2005 11:28:37 +0930 Organization: Temperature Technology Message-ID: <1126663117.8712.10.camel@localhost.localdomain> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1126663641 31771 80.91.229.2 (14 Sep 2005 02:07:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 14 Sep 2005 02:07:21 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 14 04:07:13 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EFMfK-0007tz-5r for geh-help-gnu-emacs@m.gmane.org; Wed, 14 Sep 2005 04:06:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EFMZy-0000Af-MK for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Sep 2005 22:00:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EFMYj-000069-3U for help-gnu-emacs@gnu.org; Tue, 13 Sep 2005 21:59:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EFMYf-0008WV-J2 for help-gnu-emacs@gnu.org; Tue, 13 Sep 2005 21:59:35 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EFMYf-0008WL-EJ for help-gnu-emacs@gnu.org; Tue, 13 Sep 2005 21:59:33 -0400 Original-Received: from [203.6.132.83] (helo=levanto.mail.adnap.net.au) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EFMXs-0001ah-3b for help-gnu-emacs@gnu.org; Tue, 13 Sep 2005 21:58:44 -0400 Original-Received: from [192.168.1.196] (202-136-109-60.ip.adam.com.au [202.136.109.60]) by levanto.mail.adnap.net.au (Postfix) with ESMTP id 1585F5B20 for ; Wed, 14 Sep 2005 11:28:38 +0930 (CST) Original-To: help-gnu-emacs@gnu.org X-Mailer: Evolution 2.2.1.1 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:29448 Archived-At: Hi, I am trying to pass the following to M-x grep: grep -nHr --include=*.c . -e \bWORD\b On my GNU/Linux system, this works (if I put quotes around the regexp and include string), but on Windows XP, it doesn't work (no matches are found, when I know there should be some). If I just have WORD as the regexp, it works fine, but it's matching DWORD, and I only want to find WORD (I'm trying to make a 16-bit program 32-bit clean, blech). It seems to me that something is fouling up the \b part of the regexp. Can someone tell me how to get the \b through to grep? I am using Emacs 21.3.50.8 of 2003-12-29 from TEI Emacs, but I have replaced the grep from TEI by GNU Grep 2.5.1 from the GNUWin32 project. cheers, John