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

Re: [PATCH] Use "-script" postfix for scripts

From
Linus Torvalds <torvalds@osdl.org>
Date
Aug 12, 2005, 21:55 UTC
Message-ID
<Pine.LNX.4.58.0508121451590.3295@g5.osdl.org>
In-Reply-To
<7vwtmrxjbb.fsf@assigned-by-dhcp.cox.net>
On Fri, 12 Aug 2005, Junio C Hamano wrote:
Show 7 quoted lines
> 
> I have never liked the original -script name convention.  It
> only meant that they are implemented as scripts (as opposed to
> those on the $(PROG) Makefile variable), but the end users who
> end up typing their names from the command line, and to a lesser
> degree the people who use them in their scripts, should not care
> how they are implemented to begin with.

Well, end users _don't_ care, since they are supposed to use just a simple "git xxx".

The advantage with "git-xxx-script" is for git developers: at least yours truly does "grep xyz *.c" all the time, and the "grep abc *-script" is entirely analogous to that. That's where the "-script" ending comes from: it really helps pick out the stuff you can grep from (as opposed to the stuff that got compiled and isn't greppable).

Sure, I could have called it ".sh" instead to make it look even more like a shell script thing, but I actually think "-script" describes any scripting language - shell, perl, you name it..

			Linus
Previous: Johannes SchindelinNext: Ryan Anderson
Message 4 of 9 in “Use "-script" postfix for scripts”
  1. Use "-script" postfix for scriptsJohannes Schindelin, Aug 12, 2005
  2. Junio C HamanoAug 12, 2005
  3. Johannes SchindelinAug 12, 2005
  4. Linus TorvaldsAug 12, 2005
  5. Ryan AndersonAug 12, 2005
  6. Junio C HamanoAug 13, 2005
  7. Linus TorvaldsAug 13, 2005
  8. Ryan AndersonAug 13, 2005
  9. Petr BaudisAug 13, 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.