cmd: Handle whitespace in 'for' argument items.
commitbecfbb80b4e80680b32cc240b2465e4972590b14
authorJason Edmeades <us@edmeades.me.uk>
Mon, 10 Sep 2018 22:30:18 +0000 (10 23:30 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 11 Sep 2018 17:10:51 +0000 (11 19:10 +0200)
tree0ea7b5809c8735f163f042dbddda077771858b6b
parentb6774e38e657bdedb598538cbaf78f42d1f611f4
cmd: Handle whitespace in 'for' argument items.

Avoid whitespace affecting the parsing of a for loops items. The
leading and trailing quote or backtick needed removing, and it was
assumed that the trailing character would be that character, which was
wrong when there was whitespace unless the parameter is trimmed.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45731
Signed-off-by: Jason Edmeades <us@edmeades.me.uk>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
programs/cmd/builtins.c
programs/cmd/tests/test_builtins.cmd
programs/cmd/tests/test_builtins.cmd.exp