Commit 9bad2feb authored by Yann Droneaud's avatar Yann Droneaud Committed by Alexandre Julliard

cmd: Added some expansion tests.

parent ef058b30
...@@ -23,6 +23,21 @@ cd dummydir ...@@ -23,6 +23,21 @@ cd dummydir
echo %~dp0 echo %~dp0
cd .. cd ..
rmdir dummydir rmdir dummydir
echo %CD%
echo %%
echo P%
echo %P
echo %UNKNOWN%S
echo P%UNKNOWN%
echo P%UNKNOWN%S
echo %ERRORLEVEL
echo %ERRORLEVEL%
echo %ERRORLEVEL%%ERRORLEVEL%
echo %ERRORLEVEL%%
echo %ERRORLEVEL%%%
echo P%ERRORLEVEL%
echo %ERRORLEVEL%S
echo P%ERRORLEVEL%S
echo ------------ Testing if/else -------------- echo ------------ Testing if/else --------------
echo if/else should work with blocks echo if/else should work with blocks
......
...@@ -16,6 +16,21 @@ bar ...@@ -16,6 +16,21 @@ bar
~dp0 should be directory containing batch file ~dp0 should be directory containing batch file
@pwd@\ @pwd@\
@pwd@\ @pwd@\
@pwd@
%
P
P
S
P
PS
ERRORLEVEL
0
00
0
0%
P0
0S
P0S
------------ Testing if/else -------------- ------------ Testing if/else --------------
if/else should work with blocks if/else should work with blocks
if seems to work if seems to work
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment