Mail Archives: djgpp-workers/2001/05/12/06:18:53
> From: "Tim Van Holder" <tim DOT van DOT holder AT pandora DOT be>
> Date: Sat, 12 May 2001 09:40:32 +0200
>
> > > Basically, if I ask spawn to run <foo>, I expect it to run <foo> if it
> > > exists, and try <foo>.exe if it doesn't
> >
> > That's not what COMMAND.COM does. Try typing "foo" in a directory
> > where both `foo' and `foo.exe' exist, and see who gets called.
> That's only because it doesn't consider foo executable. I should amend it
> by saying it should try <foo> if it exists and is executable, and only try
> <foo>.exe afterwards.
But that's not what we want if `foo' is an unstubbed COFF: such
executables are run via go32-v2, which is both slower and has some
unpleasant side effects in subtle cases (the stack size and other
stubinfo fields are not always honored, command-line length is limited
to 126 characters, etc.).
So we actually have a good reason to look for foo.exe first.
- Raw text -