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

Removing command dispatcher (was Re: [ANNOUNCE] git-pasky-0.6.2 && heads-up on upcoming changes)

From
David A. Wheeler <dwheeler@dwheeler.com>
Date
Apr 21, 2005, 18:15 UTC
Message-ID
<4267EDD7.1070103@dwheeler.com>
In-Reply-To
<pan.2005.04.21.02.48.19.802122@smurf.noris.de>
Matthias Urlichs wrote:
Show 8 quoted lines
>Linus Torvalds wrote:
>
>  
>
>>I realize that there is probably a law that there has to be a space, but I 
>>actually personally use tab-completion all the time
>>    
>>
It's very unusual, but I can't think of any crisis it causes.

One minor annoyance: Windows doesn't support #! magic headers, and a very few-and-probably-ignorable old Unix systems don't either. There, commands written in an interpreter like perl, python, or shell can't be kicked off just by a #! reference at the top (standard Windows' shell is incompatible anyway, so it's just as well in the case of shell).

I don't see this as a roadblock, though. On those systems, you could create trivial stubs that just invoke the interpreter (e.g., perl) and the real program. In the Windows case, you can use Windows' miserable excuse for a command processor to do that very easily. E.g., if "cg-update" is a Perl script, then you can create a file "cg-update.bat": perl \path\to\cg-update %*

(That requires Windows NT4 or better. MS-DOS didn't have %*, so you needed: perl \path\to\cg-update %1 %2 %3 %4 %5 %6 %7 %8 %9 It's hard to imagine an MS-DOS git user though.)

--- David A. Wheeler
Previous: Matthias UrlichsNext: Ingo Molnar
Message 29 of 33 in “[ANNOUNCE] git-pasky-0.6.2 && heads-up on upcoming changes”
  1. Petr BaudisApr 20, 2005
  2. Petr BaudisApr 20, 2005
  3. Greg KHApr 20, 2005
  4. Mike TahtApr 20, 2005
  5. Joshua T. CorbinApr 20, 2005
  6. Petr BaudisApr 20, 2005
  7. Randy.DunlapApr 20, 2005
  8. Steven ColeApr 20, 2005
  9. Linus TorvaldsApr 20, 2005
  10. Petr BaudisApr 20, 2005
  11. Greg KHApr 20, 2005
  12. Linus TorvaldsApr 21, 2005
  13. Linus TorvaldsApr 21, 2005
  14. Daniel JacobowitzApr 21, 2005
  15. SeanApr 21, 2005
  16. Linus TorvaldsApr 21, 2005
  17. Dave JonesApr 21, 2005
  18. Junio C HamanoApr 21, 2005
  19. Daniel JacobowitzApr 21, 2005
  20. Petr BaudisApr 21, 2005
  21. Edgar ToernigApr 21, 2005
  22. Petr BaudisApr 21, 2005
  23. Paul JacksonApr 24, 2005
  24. Randy.DunlapApr 21, 2005
  25. SeanApr 21, 2005
  26. Greg KHApr 21, 2005
  27. Paul JacksonApr 24, 2005
  28. Matthias UrlichsApr 21, 2005
  29. Removing command dispatcher (was Re: [ANNOUNCE] git-pasky-0.6.2 && heads-up on upcoming changes)David A. Wheeler, Apr 21, 2005
  30. Ingo MolnarApr 21, 2005
  31. Andrew MortonApr 25, 2005
  32. Bryan DonlanApr 21, 2005
  33. Petr BaudisApr 21, 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.