On Jan 5, 2008 6:49 PM, Johannes Sixt <[EMAIL PROTECTED]> wrote: > On Saturday 05 January 2008 08:10, Nguyen Thai Ngoc Duy wrote: > > On Jan 5, 2008 3:56 AM, Johannes Sixt <[EMAIL PROTECTED]> wrote: > > > On Monday 31 December 2007 12:45, Nguyễn Thái Ngọc Duy wrote: > > > > This is the behavior of spawn* (or at least Wine source does it). > > > > CreateProcess() does not have such assumption. > > > > > > Hmm... The function mingw_spawnve, dispite its name, is not intended to > > > do this dwimmery. I assume you need this behavior for gitbox. Please have > > > the caller append .exe if it is not present. You can publish and use > > > path_lookup() (as mingw_path_lookup()) and other helpers in its vicinity > > > if that helps. > > > > Gitbox aside, mingw_spawnve is also used in start_command(). In case > > it's a git command, I don't see any way .exe is appended to git-foo > > before calling mingw_spawnve(). > > But start_command() calls mingw_spawnvpe(), which uses path_lookup() (and > adds .exe if necessary), then calls mingw_spawnve().
Ah.. right. Sorry I missed "p". -- Duy
