in reply to Re^7: system and wildcard expansion?
in thread system and wildcard expansion?

AFIK, this behaviour is kept even if the shell is not involved.

Apparently not. From win32.c source (circa line 4225):

/* initial NULL argument to CreateProcess() does a PATH * search, but it always first looks in the directory * where the current process was started, which behavior * is undesirable for backward compatibility. So we * jump through our own hoops by picking out the path * we really want it to use. */

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
RIP an inspiration; A true Folk's Guy

Replies are listed 'Best First'.
Re^9: system and wildcard expansion?
by rovf (Priest) on Nov 12, 2010 at 12:08 UTC
    Clever! I didn't notice it, because (out of my dangerous habit when using Unix), I always kept '.' in the PATH...

    Thanks for pointing this out.

    -- 
    Ronald Fischer <ynnor@mm.st>