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

Re: GIT on MinGW problem

From
Johannes Sixt <j.sixt@eudaptics.com>
Date
May 29, 2007, 12:10 UTC
Message-ID
<465C184F.F6053C0C@eudaptics.com>
In-Reply-To
<465C1252.9020801@trolltech.com>
Marius Storm-Olsen wrote:
Show 19 quoted lines
> 
> Johannes Sixt said the following on 29.05.2007 12:54:
> > Han-Wen Nienhuys wrote:
> >> Johannes Sixt escreveu:
> >>> * git without an correct git subcommand should list 20 or so
> >>> commands, but it doesn't. The list is just empty.
> >> there was a problem in generate cmd list,  (I have sort in /bin/
> >> ). I recommend to add
> >
> > Strange. Here, MSYS aliases /usr to /, hence /usr/bin/sort is the
> > same as /bin/sort.
> >
> > (For the curious ones: The MinGW port has to replace occurrences of
> > 'sort' by '/usr/bin/sort', otherwise Windows's 'sort' would be
> > picked up in shell scripts, because the latter usually comes first
> > in %PATH%^W$PATH. Same for 'find'.)
> 
> I get that here too, no matter what I set the mount point to be, and
> without the fstab file at all.

When I inserted '/usr/bin/sort' I had checked for 'which sort' on my Linux and it gave me /usr/bin/sort. Now I see that /bin/sort is probably the canonical path to sort on any *nix. Will change that. But is this also true for 'find'?

> Also, the /bin/gitk.bat file should rather be
>      @"%~d0%~p0wish84.exe" "%~d0%~p0gitk" %*
> than the current hardcoded path. (Probably won't work with
> command.com, but who uses that for development nowadays anyways, right ;-)

Nice trick! But don't try this at home without parental guidance! It fills your screen with recursive console window invocations of itself.

I put this into gitk.cmd (didn't try .bat):
@start wish84.exe "%~d0%~p0gitk" %*

assuming wish84 is in the PATH (which is probably a sane assumption because either it is part of the installer, in which case it should have set up the PATH, or you have Tcl/Tk installed for some other reason, in which case you will want to have it in the PATH, too).

Futhermore, I like to have the GUI sent into the background automatically and without opening another console window, hence, the use of 'start'.

-- Hannes
Previous: Marius Storm-OlsenNext: Han-Wen Nienhuys
Message 47 of 69 in “GIT on MinGW problem”
  1. Aaron GrayMay 12, 2007
  2. Junio C HamanoMay 12, 2007
  3. Aaron GrayMay 12, 2007
  4. Han-Wen NienhuysMay 12, 2007
  5. Johannes SixtMay 25, 2007
  6. Marco CostalbaMay 25, 2007
  7. Johannes SchindelinMay 25, 2007
  8. Johannes SixtMay 25, 2007
  9. Han-Wen NienhuysMay 26, 2007
  10. Johannes SchindelinMay 26, 2007
  11. Han-Wen NienhuysMay 27, 2007
  12. Johannes SchindelinMay 27, 2007
  13. Han-Wen NienhuysMay 27, 2007
  14. NixMay 28, 2007
  15. Han-Wen NienhuysMay 27, 2007
  16. Aaron GrayMay 25, 2007
  17. Han-Wen NienhuysMay 26, 2007
  18. Johannes SchindelinMay 26, 2007
  19. Junio C HamanoMay 26, 2007
  20. Johannes SchindelinMay 26, 2007
  21. Han-Wen NienhuysMay 26, 2007
  22. Jakub NarebskiMay 26, 2007
  23. Han-Wen NienhuysMay 27, 2007
  24. Shawn O. PearceMay 27, 2007
  25. Han-Wen NienhuysMay 27, 2007
  26. Steven GrimmMay 27, 2007
  27. Jakub NarebskiMay 27, 2007
  28. Han-Wen NienhuysMay 27, 2007
  29. Johannes SchindelinMay 28, 2007
  30. Han-Wen NienhuysMay 28, 2007
  31. Johannes SchindelinMay 27, 2007
  32. Han-Wen NienhuysMay 27, 2007
  33. GIT on MinGW, with tcltk for gitkHan-Wen Nienhuys, May 27, 2007
  34. Aaron GrayMay 27, 2007
  35. Han-Wen NienhuysMay 27, 2007
  36. Aaron GrayMay 27, 2007
  37. Aaron GrayMay 27, 2007
  38. Han-Wen NienhuysMay 27, 2007
  39. Aaron GrayMay 27, 2007
  40. Han-Wen NienhuysMay 27, 2007
  41. Aaron GrayMay 27, 2007
  42. Johannes SchindelinMay 27, 2007
  43. Johannes SixtMay 29, 2007
  44. Han-Wen NienhuysMay 27, 2007
  45. Johannes SixtMay 29, 2007
  46. Marius Storm-OlsenMay 29, 2007
  47. Johannes SixtMay 29, 2007
  48. Han-Wen NienhuysMay 29, 2007
  49. Johannes SixtMay 29, 2007
  50. Johannes SchindelinMay 29, 2007
  51. Marius Storm-OlsenMay 29, 2007
  52. Johannes SixtMay 29, 2007
  53. Marius Storm-OlsenMay 29, 2007
  54. Johannes SchindelinMay 29, 2007
  55. Johannes SixtMay 29, 2007
  56. Nguyen Thai Ngoc DuyMay 29, 2007
  57. Johannes SixtMay 29, 2007
  58. Nguyen Thai Ngoc DuyMay 29, 2007
  59. Make git-k an alias to gitkJohannes Schindelin, May 30, 2007
  60. Johannes SixtMay 30, 2007
  61. Han-Wen NienhuysMay 30, 2007
  62. Johannes SchindelinMay 30, 2007
  63. Shawn O. PearceMay 30, 2007
  64. Git wrapper: add --redirect-stderr optionJohannes Schindelin, May 30, 2007
  65. Shawn O. PearceMay 30, 2007
  66. Johannes SchindelinMay 30, 2007
  67. Shawn O. PearceMay 30, 2007
  68. Johannes SchindelinMay 30, 2007
  69. Johannes SchindelinMay 27, 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.