cmd: Add test for substring handling in 'magic' variable expansion.

Signed-off-by: Eric Pouech <epouech@codeweavers.com>
This commit is contained in:
Eric Pouech 2024-03-31 09:44:42 +02:00 committed by Alexandre Julliard
parent 29c0826e6d
commit b868d82391
2 changed files with 8 additions and 0 deletions

View file

@ -622,7 +622,13 @@ echo %WINE_VAR:~2,-1%
echo %WINE_VAR:~2,-3%
echo '%WINE_VAR:~-2,-4%'
echo %WINE_VAR:~-3,-2%
echo %WINE_VAR:~4,4%
set WINE_VAR=
mkdir dummydir
cd dummydir
echo %CD:~-6,6%
cd ..
rmdir dummydir
echo ------------ Testing variable substitution ------------
echo --- in FOR variables

View file

@ -532,6 +532,8 @@ ert@or_broken@qwerty
e@or_broken@qwerty
''@or_broken@'qwerty'
r@or_broken@qwerty
ty
@todo_wine@mmydir
------------ Testing variable substitution ------------
--- in FOR variables
"A B"