in reply to Re: Can't spawn "cmd.exe":
in thread Can't spawn "cmd.exe":

Could you expand a little on the nature of the bug? The current behaviour seems harmless; maybe even useful.


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.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."

Replies are listed 'Best First'.
Re^3: Can't spawn "cmd.exe":
by ikegami (Patriarch) on Mar 18, 2009 at 17:07 UTC
    system documents that the value of $test in system ("cmd",$test); will be passed as a single argument. If system behaved as documented, it would execute
    cmd "/C excel.exe text.xls"

    cmd does not accept that.

        Really.
        >cmd "/C dir" 'dir"' is not recognized as an internal or external command, operable program or batch file. >cmd /C dir Volume in drive C is C Volume Serial Number is 28AB-0E8B Directory of C:\Documents and Settings\ikegami 2009/03/18 03:49 PM <DIR> . 2009/03/18 03:49 PM <DIR> .. ...

        That's the one I had used to test earlier, but it turns out cmd is very forgiving for practically all other commands.