On Thu, Jun 29, 2006 at 02:38:37AM +0200, Alex Riesen wrote: >Christopher Faylor, Wed, Jun 28, 2006 17:06:47 +0200: >>>It still uses some calls to git programs (git-update-index, >>>git-hash-object, git-diff-tree and git-write-tree), and merge(1) has >>>the labels (-L) missing - I was unsure how to tackle this on windows - >>>it has only argv[1]. >> >>Actually, Windows should behave the same as Linux wrt argv handling. >>You can use argv[1] ... argv[n] modulo any differences in command line >>quoting. > >which leaves us (without quoting) with exactly one argument. argv[1], >aka GetCommandLine. > >>On Windows the arguments are broken into individual components by the >>runtime, e.g., MSVCRT.dll or Cygwin1.dll. > >And the rules for quoting are the same for ms and cygwin? Probably not but I was the one who raised the issue of quoting, not you. Quoting is irrelevant to the general assertion that there is only an argv[1] on Windows. If that is the behavior that you're seeing then something is wrong in the way the program is being invoked. Maybe I'm missing something here and you're talking about some specific case in git. It's hard to see how anyone could make this assertion otherwise. cgf - : send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html