Eric Pouech : cmd: Fix a couple of expansions issues.
Module: wine Branch: master Commit: 6ad88c5512c4524efed592e5c1191b756fd97fd5 URL: https://gitlab.winehq.org/wine/wine/-/commit/6ad88c5512c4524efed592e5c1191b7... Author: Eric Pouech <epouech(a)codeweavers.com> Date: Mon May 6 16:03:40 2024 +0200 cmd: Fix a couple of expansions issues. Fix several incorrect behaviors that (partly) compensate each others: - when replacing %XXX% by %YYY%, advance current position after the copied %YYY% (otherwise it will expand %YYY% in same run), - don't parse the command in run_program(), - always expand full content in CALL command. Signed-off-by: Eric Pouech <epouech(a)codeweavers.com> --- programs/cmd/batch.c | 78 +++++++++++++-------------- programs/cmd/tests/test_builtins.cmd.exp | 6 +-- programs/cmd/tests/test_cmdline.cmd.exp | 2 +- programs/cmd/wcmd.h | 4 +- programs/cmd/wcmdmain.c | 90 ++++++++++++++++---------------- 5 files changed, 88 insertions(+), 92 deletions(-)
participants (1)
-
Alexandre Julliard