[PATCH 8/9] CMD: Change the parameterization to be correct [try 2]

Jason Edmeades jason.edmeades at googlemail.com
Tue Sep 7 17:59:48 CDT 2010


Previously if a token started with a quote, it was assumed the end
quote was the end of the parameter, which is incorrect - it is
perfectly valid to have eg. "c:\program files"\directory.

This patch fixes bug 22431. Note the same logic will need to be
added to anywhere in cmd where the parameter gets passed as a true
filename to a lower level function - however, it would be broken
today anyway and its seriously improved with this logic!

Try 2 - avoid use of %CD% as unsupported on NT4
---
 programs/cmd/batch.c                     |   30 +++++++---------------
 programs/cmd/builtins.c                  |    4 ++-
 programs/cmd/tests/test_builtins.cmd     |   25 ++++++++++++++++++
 programs/cmd/tests/test_builtins.cmd.exp |   32 ++++++++++++++++++++++++
 programs/cmd/wcmd.h                      |    1 +
 programs/cmd/wcmdmain.c                  |   40 +++++++++++++++++++----------
 6 files changed, 97 insertions(+), 35 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0008-CMD-Change-the-parameterization-to-be-correct-try-2.txt
Type: text/x-patch
Size: 6947 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20100907/8c560cc4/attachment-0001.bin>


More information about the wine-patches mailing list