cmd: Handle "for" loop handling of tokens, where * does not follow a number.
commit1a7333bec627a31a43d380ecc63e5792e302373e
authorJason Edmeades <us@edmeades.me.uk>
Mon, 10 Sep 2018 22:30:19 +0000 (10 23:30 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 11 Sep 2018 17:11:17 +0000 (11 19:11 +0200)
tree3b6ba5425233173081cf4196d169960f71239662
parentbecfbb80b4e80680b32cc240b2465e4972590b14
cmd: Handle "for" loop handling of tokens, where * does not follow a number.

With the 'for' loop /f syntax, if tokens are requested the the normal
syntax is something like tokens=1,2* but there is valid syntax like
1,2,* (which effectively means the same). Make this other syntax work.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45722
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