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

Re: [PATCH] Improve "git grep" flags handling

From
Linus Torvalds <torvalds@osdl.org>
Date
Sep 13, 2005, 17:51 UTC
Message-ID
<Pine.LNX.4.58.0509131044340.3351@g5.osdl.org>
In-Reply-To
<200509131739.j8DHdQL1010615@laptop11.inf.utfsm.cl>
On Tue, 13 Sep 2005, Horst von Brand wrote:
> 
> Shouldn't shebang go /bin/bash, as the script uses bash-isms now?
> (For portability to non-enlightened systems the installation would have to
> locate bash too... and/or mention this in the INSTALL file)
Some bash installs only install in /bin/sh, so..
> Or perhaps redo the mess in Perl or some such?

Hey, the code isn't a mess. The fact that there are tons of different shells and they don't support it is the mess.

So we should strive for bash syntax to be so common that other shells follow suit ;)

I personally find perl to be a really bad language. It has more of a unified base (different versions, but at least not totally different and unrelated implementations), and it's clearly more powerful, but as a _language_ I don't understand how anybody can accept that crap.

The "there's more than one way to do something" slogan may be cute and sound good to people who are drawn to that thing, but it's actually bad. The language is designed to be write-only, and the "you can do it fifty different ways" is part of it (and line noise characters is another part of it).

So sh is actually often a much better language. Too bad some of the features end up being outside the standard language.

I know, I know, people will consider me crazy for saying that. 
Oh, well. As long as all the _important_ stuff is in C, we're ok.
			Linus
Previous: Horst von BrandNext: Junio C Hamano
Message 38 of 96 in “Re: Status of git.git repository”
  1. Horst von BrandAug 1, 2005
  2. Horst von BrandAug 8, 2005
  3. Horst von BrandAug 10, 2005
  4. Johannes SchindelinAug 10, 2005
  5. Horst von BrandAug 16, 2005
  6. Johannes SchindelinAug 16, 2005
  7. Matthias UrlichsAug 18, 2005
  8. Horst von BrandSep 2, 2005
  9. Tim OttingerSep 6, 2005
  10. Horst von BrandSep 4, 2005
  11. Junio C HamanoSep 5, 2005
  12. Peter WilliamsSep 5, 2005
  13. Junio C HamanoSep 5, 2005
  14. Peter WilliamsSep 5, 2005
  15. Horst von BrandSep 5, 2005
  16. Junio C HamanoSep 5, 2005
  17. Linus TorvaldsSep 5, 2005
  18. David KågedalSep 5, 2005
  19. Linus TorvaldsSep 5, 2005
  20. David KågedalSep 5, 2005
  21. Junio C HamanoSep 5, 2005
  22. Junio C HamanoSep 5, 2005
  23. Martin LanghoffSep 6, 2005
  24. Linus TorvaldsSep 6, 2005
  25. Junio C HamanoSep 6, 2005
  26. Linus TorvaldsSep 6, 2005
  27. Junio C HamanoSep 6, 2005
  28. David KågedalSep 6, 2005
  29. Junio C HamanoSep 6, 2005
  30. Tool renames.Junio C Hamano, Sep 8, 2005
  31. H. Peter AnvinSep 15, 2005
  32. Junio C HamanoSep 15, 2005
  33. Junio C HamanoSep 15, 2005
  34. H. Peter AnvinSep 16, 2005
  35. Junio C HamanoSep 16, 2005
  36. Martin LanghoffSep 6, 2005
  37. Horst von BrandSep 13, 2005
  38. Linus TorvaldsSep 13, 2005
  39. Junio C HamanoSep 13, 2005
  40. Linus TorvaldsSep 13, 2005
  41. Horst von BrandSep 13, 2005
  42. Junio C HamanoSep 13, 2005
  43. Horst von BrandSep 17, 2005
  44. Horst von BrandSep 20, 2005
  45. Horst von BrandOct 3, 2005
  46. Horst von BrandOct 4, 2005
  47. Horst von BrandOct 27, 2005
  48. Archaeology [Was: Re: GIT 0.99.9]Horst von Brand, Oct 31, 2005
  49. Horst von BrandNov 1, 2005
  50. Junio C HamanoNov 2, 2005
  51. Horst von BrandNov 6, 2005
  52. Kay SieversNov 6, 2005
  53. Junio C HamanoNov 6, 2005
  54. Petr BaudisNov 6, 2005
  55. Junio C HamanoNov 6, 2005
  56. Petr BaudisNov 6, 2005
  57. Horst von BrandDec 4, 2005
  58. H. Peter AnvinDec 4, 2005
  59. Horst von BrandDec 22, 2005
  60. Horst von BrandJan 28, 2006
  61. Junio C HamanoJan 28, 2006
  62. Horst von BrandJun 4, 2006
  63. Horst von BrandJun 6, 2006
  64. Junio C HamanoJun 6, 2006
  65. Horst von BrandJun 6, 2006
  66. Junio C HamanoJun 6, 2006
  67. Horst von BrandJun 6, 2006
  68. Junio C HamanoJun 6, 2006
  69. Horst von BrandJun 6, 2006
  70. Horst H. von BrandOct 10, 2006
  71. Junio's wishes [Was: Re: Approxidate licensing]Horst H. von Brand, Oct 10, 2006
  72. Linus TorvaldsOct 10, 2006
  73. Horst H. von BrandOct 13, 2006
  74. Nicolas PitreOct 13, 2006
  75. Horst H. von BrandOct 15, 2006
  76. Horst H. von BrandOct 20, 2006
  77. Horst H. von BrandOct 26, 2006
  78. Junio C HamanoOct 26, 2006
  79. Horst H. von BrandOct 29, 2006
  80. Horst H. von BrandNov 6, 2006
  81. Junio C HamanoNov 6, 2006
  82. Horst H. von BrandNov 15, 2006
  83. Horst H. von BrandNov 20, 2006
  84. Junio C HamanoNov 20, 2006
  85. Horst H. von BrandNov 26, 2006
  86. Horst H. von BrandDec 14, 2006
  87. Jakub NarebskiDec 15, 2006
  88. Horst H. von BrandDec 27, 2006
  89. Junio C HamanoDec 28, 2006
  90. Jakub NarebskiDec 28, 2006
  91. Horst H. von BrandDec 28, 2006
  92. Shawn PearceDec 28, 2006
  93. Horst H. von BrandDec 29, 2006
  94. Horst H. von BrandJan 8, 2007
  95. Horst H. von BrandJan 12, 2007
  96. Junio C HamanoJan 12, 2007

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.