|
From: | Jason Rumney |
Subject: | Re: Fixing Windows and DOS command line argument quoting |
Date: | Mon, 25 Apr 2011 16:58:35 +0800 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1 |
On 25/04/2011 16:49, Daniel Colascione wrote:
1. we can have cmdproxy level-two-dequote the supplied command line before giving it to CreateProcess, or 2. we can remove optimization described above and have cmdproxy always run the command interpreter. I favor the second option: cmd starts very quickly, and we don't save much time by bypassing it.
IIRC, this "optimisation" isn't about saving time, but about avoiding limitations in cmd.exe where possible.
Another possibility is to make the decision whether to use cmd.exe or not based on the presence of "level 2" metacharacters rather than "level 1".
[Prev in Thread] | Current Thread | [Next in Thread] |