cmd/tests: Add tests for FOR /F 'eol' option.
This commit is contained in:
parent
bf0e1c7ca7
commit
1755885472
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue