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

Re: [PATCH] git-grep: convert from bash to sh

From
THTimo Hirvonen <tihirvon@gmail.com>
Date
Dec 18, 2005, 20:18 UTC
Message-ID
<20051218221800.744e4565.tihirvon@gmail.com>
In-Reply-To
<Pine.LNX.4.64.0512181155360.4827@g5.osdl.org>

On Sun, 18 Dec 2005 11:57:26 -0800 (PST) Linus Torvalds <torvalds@osdl.org> wrote:

Show 11 quoted lines
> On Sun, 18 Dec 2005, Timo Hirvonen wrote:
> > 
> > sh does not support arrays so we have to use eval instead.
> 
> This seems horribly broken.
> 
> If I'm not mistaken, this breaks
> 
> 	git grep "it's a happy coincidence"
> 
> badly. I didn't test, just looking at the patch.
Actually it works:

/usr/src/linux-2.6: git grep "it's a" Documentation/Changes:debugfs. Obviously, it's a good idea to upgrade. Documentation/CodingStyle:and NOT read it. Burn them, it's a great symbolic gesture.

but it doesn't work with backslashes.  Need to use \\

/usr/src/linux-2.6: git grep 'e.\\n"' Documentation/DMA-mapping.txt: "mydev: No suitable DMA available.\n"); Documentation/DMA-mapping.txt: "mydev: No suitable DMA available.\n");

-- 
http://onion.dynserv.net/~timo/
Previous: Linus Torvalds
Message 5 of 5 in “git-grep: convert from bash to sh”
  1. git-grep: convert from bash to shTimo Hirvonen, Dec 18, 2005
  2. Petr BaudisDec 18, 2005
  3. Junio C HamanoDec 18, 2005
  4. Linus TorvaldsDec 18, 2005
  5. Timo HirvonenDec 18, 2005

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.