git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [RFC/PATCH] Fix "grep -w"

From
MWMorten Welinder <mwelinder@gmail.com>
Date
Aug 5, 2006, 19:19 UTC
Message-ID
<118833cc0608051219q7e19800alc05870058973c2e@mail.gmail.com>
In-Reply-To
<7vwt9ng3t1.fsf@assigned-by-dhcp.cox.net>
1. Are you sure that going to the end of the first match is correct?
It seems to
   me that this will skip matches.  Say you search for ".*" on a line that reads
   " xxx".
2. What about "^"?
3. What about empty matches?  That could take a while...
Morten
Previous: Junio C HamanoNext: Junio C Hamano
Message 2 of 4 in “Fix "grep -w"”
  1. Fix "grep -w"Junio C Hamano, Aug 5, 2006
  2. Morten WelinderAug 5, 2006
  3. Junio C HamanoAug 5, 2006
  4. Junio C HamanoAug 6, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.