From dcd544f744733cf446ef8fc602ebdff6de572e2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Delanoy?= Date: Thu, 28 Jul 2011 01:06:46 +0200 Subject: [PATCH] cmd/tests: Test special handling of ':' in echo. --- programs/cmd/tests/test_builtins.cmd | 8 ++++++++ programs/cmd/tests/test_builtins.cmd.exp | 16 ++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/programs/cmd/tests/test_builtins.cmd b/programs/cmd/tests/test_builtins.cmd index 1b3bbcb8ff2..c9d1d532a4e 100644 --- a/programs/cmd/tests/test_builtins.cmd +++ b/programs/cmd/tests/test_builtins.cmd @@ -11,6 +11,10 @@ echo. echo . echo.word echo .word +echo: +echo : +echo:word +echo :word echo word@space@ echo word@space@@space@ @@ -25,6 +29,10 @@ echo. echo . echo.word echo .word +echo: +echo : +echo:word +echo :word echo word@space@ echo word@space@@space@ diff --git a/programs/cmd/tests/test_builtins.cmd.exp b/programs/cmd/tests/test_builtins.cmd.exp index d06c4cffd54..7db3b86a23f 100644 --- a/programs/cmd/tests/test_builtins.cmd.exp +++ b/programs/cmd/tests/test_builtins.cmd.exp @@ -30,6 +30,18 @@ word @pwd@>echo .word@space@ .word +@todo_wine@@pwd@>echo: +@todo_wine@ + +@pwd@>echo :@space@ +: + +@todo_wine@@pwd@>echo:word +@todo_wine@word + +@pwd@>echo :word@space@ +:word + @pwd@>echo word@space@@space@ word@space@ @@ -45,6 +57,10 @@ at-echoed-word . word .word +@todo_wine@ +: +@todo_wine@word +:word word@space@ word@space@@space@ ------------ Testing redirection operators --------------