cmd/tests: Additional tests for variable delayed expansion.
This commit is contained in:
parent
0b5dcbafea
commit
0cfe9fa6a5
|
@ -207,6 +207,15 @@ set FOO=foo
|
|||
echo %FOO%
|
||||
echo !FOO!
|
||||
set FOO=
|
||||
echo ...using /V cmd flag
|
||||
echo @echo off> tmp.cmd
|
||||
echo set FOO=foo>> tmp.cmd
|
||||
echo echo %%FOO%%>> tmp.cmd
|
||||
echo echo !FOO!>> tmp.cmd
|
||||
echo set FOO=>> tmp.cmd
|
||||
cmd /V:ON /C tmp.cmd
|
||||
cmd /V:OfF /C tmp.cmd
|
||||
del tmp.cmd
|
||||
|
||||
echo ------------ Testing conditional execution --------------
|
||||
echo ...unconditional ^&
|
||||
|
|
|
@ -161,6 +161,11 @@ foo
|
|||
0@or_broken@1
|
||||
foo
|
||||
!FOO!
|
||||
...using /V cmd flag
|
||||
foo
|
||||
@todo_wine@foo@or_broken@!FOO!
|
||||
foo
|
||||
!FOO!
|
||||
------------ Testing conditional execution --------------
|
||||
@todo_wine@...unconditional &
|
||||
foo1
|
||||
|
|
Loading…
Reference in New Issue