From: John Steele Scott <john@t-tec.com.au>
Subject: how to pass \b to grep on w32?
Date: Wed, 14 Sep 2005 11:28:37 +0930 [thread overview]
Message-ID: <1126663117.8712.10.camel@localhost.localdomain> (raw)
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
next reply other threads:[~2005-09-14 1:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-14 1:58 John Steele Scott [this message]
[not found] <mailman.6971.1126663183.20277.help-gnu-emacs@gnu.org>
2005-09-14 16:54 ` how to pass \b to grep on w32? Eric Pement
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1126663117.8712.10.camel@localhost.localdomain \
--to=john@t-tec.com.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).