-
9d12cd02
by Eric Pouech at 2024-09-23T12:17:43+02:00
cmd: Rewrite part of WCMD_expand_envvar.
Simplifying a bit the code, removing extraneous data copy.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
-
89a480dc
by Eric Pouech at 2024-09-23T12:17:47+02:00
cmd: Fix consecutive ! in variable expansion.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
-
44c9d1b5
by Eric Pouech at 2024-09-23T12:17:49+02:00
cmd: Add tests for 'EXIT /B' inside FOR loops.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
-
909fe947
by Eric Pouech at 2024-09-23T12:17:51+02:00
cmd: EXIT /B shall break FOR loops.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=57147
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
-
bee172a4
by Eric Pouech at 2024-09-23T12:17:52+02:00
cmd/tests: Add tests for running .BAT files.
Native CMD.EXE has different behavior when running .BAT or .CMD
file for some builtin commands.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
-
c1034c3e
by Eric Pouech at 2024-09-23T12:17:56+02:00
cmd: Don't always set errorlevel for some builtin commands.
Some builtin commands don't set errorlevel upon success when run from
a .bat while (while it's set when run from a .cmd file).
ASSOC, FTYPE, PATH, PROMPT, SET
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=57139
Signed-off-by: Eric Pouech <epouech@codeweavers.com>