cmd: Handle special case tokens=* in for /f.
commit4030a952095398e5a42f0a74213f6a1e9186c4bc
authorJason Edmeades <us@edmeades.me.uk>
Sun, 15 Jul 2018 22:15:27 +0000 (15 23:15 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 16 Jul 2018 07:18:23 +0000 (16 09:18 +0200)
tree626c196c6207bd67a05145d4a96e9a8049052c28
parentf634fe15db1d6f09615505eb445b9e748720dbeb
cmd: Handle special case tokens=* in for /f.

for /f allows a special syntax of tokens=* (rather than tokens=1* for example)
which just means put the whole line into the next variable). Note the handling of
the 'next variable' was wrong in the case of it being 'A' or 'a' as the wrap
calculation was wrong, but this only affected using this new syntax.

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