Module: wine Branch: master Commit: a4161801f325d46cdf3d78c753261f6faff4c011 URL: http://source.winehq.org/git/wine.git/?a=commit;h=a4161801f325d46cdf3d78c753... Author: Flávio J. Saraiva <flaviojs2005(a)gmail.com> Date: Thu Nov 17 07:36:32 2016 +0000 cmd/tests: 'no echo' character with chains and brackets. The @ character chains until we leave the current depth. The @ character can be applied to brackets. Signed-off-by: Flávio J. Saraiva <flaviojs2005(a)gmail.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- programs/cmd/tests/test_builtins.cmd | 6 ++++++ programs/cmd/tests/test_builtins.cmd.exp | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/programs/cmd/tests/test_builtins.cmd b/programs/cmd/tests/test_builtins.cmd index 38a7700..9728e57 100644 --- a/programs/cmd/tests/test_builtins.cmd +++ b/programs/cmd/tests/test_builtins.cmd @@ -31,6 +31,12 @@ echo @tab(a)word echo @tab(a)word echo(a)tab@@tab(a)word echo @tab@ on @space@ +(a)echo --- @ with chains and brackets +(echo the @ character chains until&&@echo we leave the current depth||( +echo hidden +(a)echo hidden +))&&echo and can hide brackets||(@echo command hidden)||@(echo brackets hidden) +(a)echo --- @echo off echo off(a)tab@@space@ diff --git a/programs/cmd/tests/test_builtins.cmd.exp b/programs/cmd/tests/test_builtins.cmd.exp index d01a23e..c1f0d5f 100644 --- a/programs/cmd/tests/test_builtins.cmd.exp +++ b/programs/cmd/tests/test_builtins.cmd.exp @@ -88,6 +88,13 @@ word @tab(a)word @pwd@>echo @tab@ on @space@@space@ +--- @ with chains and brackets + +(a)todo_wine@@pwd@>(echo the @ character chains until && ) && echo and can hide brackets || () ||@space@ +(a)todo_wine@the @ character chains until +(a)todo_wine@we leave the current depth +(a)todo_wine@and can hide brackets +(a)todo_wine@--- noecho1 noecho2 echo3