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

Re: [PATCH/RFC] remove #!interpreter line from shell libraries

From
Clemens Buchacher <drizzd@aon.at>
Date
Mar 13, 2012, 19:09 UTC
Message-ID
<20120313190949.GB8074@ecki>
In-Reply-To
<20120312191703.GB21817@burratino>
On Mon, Mar 12, 2012 at 02:17:03PM -0500, Jonathan Nieder wrote:
Show 7 quoted lines
> 
> By the way, my mild dislike for the #! line in shell libraries is
> actually rooted in functionality, in a way.  Though it would never
> happen in git, I have had too many unhappy experiences of shell
> libraries with #!/bin/bash at the top that were used in #!/bin/sh
> scripts and broke completely.  So that is where the bad association
> comes from.

Maybe I am missing something here, but as far as I can see this is an argument for _keeping_ the #! line, because at least it will give a hint that a /bin/bash library will not work for a /bin/sh script, whereas "this is a shell library" can mean almost anything.

Anyways, I can certainly survive without the #! line. So please feel free to ignore my comments if you feel strongly about this.

Clemens
Previous: Jonathan NiederNext: Junio C Hamano
Message 6 of 8 in “remove #!interpreter line from shell libraries”
  1. remove #!interpreter line from shell librariesJonathan Nieder, Mar 8, 2012
  2. Jeff KingMar 8, 2012
  3. Clemens BuchacherMar 9, 2012
  4. Marc BranchaudMar 12, 2012
  5. Jonathan NiederMar 12, 2012
  6. Clemens BuchacherMar 13, 2012
  7. Junio C HamanoMar 12, 2012
  8. Clemens BuchacherMar 12, 2012

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.