cmd/tests: Add tests for FOR /F 'eol' option.

oldstable
Frédéric Delanoy 2011-08-25 23:08:33 +02:00 committed by Alexandre Julliard
parent bf0e1c7ca7
commit 1755885472
2 changed files with 14 additions and 0 deletions

View File

@ -631,6 +631,14 @@ rem preliminary grep-like program implementation (e.g. like findstr or fc) even
rem for a simple todo_wine test
rem (for /f "usebackq" %%i in (`echo z a b`) do echo %%i) || echo not supported
rem (for /f usebackq %%i in (`echo z a b`) do echo %%i) || echo not supported
echo ......eol option
for /f "eol=@" %%i in (" ad") do echo %%i
for /f "eol=@" %%i in (" z@y") do echo %%i
for /f "eol=|" %%i in ("a|d") do echo %%i
for /f "eol=@" %%i in ("@y") do echo %%i > output_file
if not exist output_file (echo no output) else (del output_file)
for /f "eol==" %%i in ("=y") do echo %%i > output_file
if not exist output_file (echo no output) else (del output_file)
cd ..
rd /s/q foobar

View File

@ -461,6 +461,12 @@ kkk
a
b
c
......eol option
@todo_wine@ad
@todo_wine@z@y
@todo_wine@a|d
@todo_wine@no output
@todo_wine@no output
-----------Testing del /a-----------
not-r.test not found after delete, good
r.test found before delete, good