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

Re: git grep '(' = segfault

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
Apr 27, 2009, 18:50 UTC
Message-ID
<alpine.LFD.2.00.0904271149480.22156@localhost.localdomain>
In-Reply-To
<40aa078e0904271142u71d7ba97w9df80667c0d9b955@mail.gmail.com>
On Mon, 27 Apr 2009, Erik Faye-Lund wrote:
Show 7 quoted lines
> On Mon, Apr 27, 2009 at 8:10 PM, Linus Torvalds
> <torvalds@linux-foundation.org> wrote:
> > Something like this should fix it.
> >
> >                Linus
> 
> (Sorry that you're getting this mail twice, Linus - I forgot to reply all)
Payback time. Now _you'll_ get it twice. Mmmwwhahahahaahaaa!
> $ git grep '('
> fatal: unmatched parenthesis
Try this:
        git grep -e '('

because 'git grep' actually allows multiple patterns, so you can do things like

        git grep '(' -e hello --or -e 'hi there' ')' --and -e world
Practical? Maybe.
                Linus
Previous: Erik Faye-LundNext: Erik Faye-Lund
Message 4 of 9 in “git grep '(' = segfault”
  1. Dmitry PotapovApr 27, 2009
  2. Linus TorvaldsApr 27, 2009
  3. Erik Faye-LundApr 27, 2009
  4. Linus TorvaldsApr 27, 2009
  5. Erik Faye-LundApr 27, 2009
  6. Matthieu MoyApr 27, 2009
  7. Erik Faye-LundApr 27, 2009
  8. Junio C HamanoApr 27, 2009
  9. Michał KiedrowiczApr 27, 2009

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.