🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Julian Cowley Sat, 20 Jan 1990 08:38
Use of b in e?grep 1.5
#607
Author: Julian Cowley
Date: Sat, 20 Jan 1990 08:38
17 lines
1129 bytes
I'm having problems using e?grep 1.5 on a Vax 8650 (berkeley-unix)
with the regards to \b.  The manual says that \b matches the
empty string at the beginning of a word, but I can't seem to get
it to work:

% grep '\bto\w*' prog.c

I'm trying to match the functions toupper, tolower, etc., in a
program.  However, grep doesn't seem to match anything, when
there are definitely instances of such functions in the
program.  Additionally, GNU Emacs works correctly when given the
same regexp.  Is this a bug or just a misunderstanding?

julian@uhccux.uhcc.hawaii.edu
julian@uhccux.bitnet
The number of spelling errors in an article is indirectly
proportional to the time since you posted it.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads