[PATCH 0/5] (resend 2) CMD command line parsing

Martin Wilck mwilck at arcor.de
Sun Sep 25 08:19:39 CDT 2011


I am resending my patch series to improve CMD.EXE's command line parsing
last submitted on Sep. 20.

Modifications wrt last submission:
 - all patches are self-contained and pass the conformance tests.
 - test programs have been tested with the Wine test bot, 0 errors
   except on Win NT.
 - whitespace fixes
 - closed a possible memory leak in main program (0002)
 - 0005 (WCMD_parameter) reworked, the function logic is better
   understandable now (I hope).

Martin Wilck (5):
  cmd/tests: add tests for command line parsing
  cmd: use GetCommandline() rather than argv
  cmd: improve parsing of quotes in command line
  cmd: fix handling of special characters in command line
  cmd: fix parameter parsing of quotes and special chars

 programs/cmd/batch.c                     |   88 ++++++----
 programs/cmd/tests/rsrc.rc               |    6 +
 programs/cmd/tests/test_builtins.cmd.exp |    8 +-
 programs/cmd/tests/test_cmdline.cmd      |  158 +++++++++++++++++
 programs/cmd/tests/test_cmdline.cmd.exp  |   77 ++++++++
 programs/cmd/wcmdmain.c                  |  278 ++++++++++++------------------
 6 files changed, 410 insertions(+), 205 deletions(-)
 create mode 100755 programs/cmd/tests/test_cmdline.cmd
 create mode 100755 programs/cmd/tests/test_cmdline.cmd.exp

-- 
1.7.3.4



More information about the wine-patches mailing list