cmd/tests: 'no echo' character with chains and brackets

Flávio J. Saraiva flaviojs2005 at gmail.com
Thu Nov 17 01:36:32 CST 2016


The @ character chains until we leave the current depth
The @ character can be applied to brackets

Signed-off-by: Flávio J. Saraiva <flaviojs2005 at gmail.com>
---
 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 at word
 echo  @tab at word
 echo at tab@@tab at word
 echo @tab@ on @space@
+ at echo --- @ with chains and brackets
+(echo the @ character chains until&&@echo we leave the current depth||(
+echo hidden
+ at echo hidden
+))&&echo and can hide brackets||(@echo command hidden)||@(echo brackets hidden)
+ at echo ---
 
 @echo off
 echo off at 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 at word
 
 @pwd@>echo @tab@ on @space@@space@
+--- @ with chains and brackets
+
+ at todo_wine@@pwd@>(echo the @ character chains until  && )  && echo and can hide brackets  || ()  ||@space@
+ at todo_wine@the @ character chains until
+ at todo_wine@we leave the current depth
+ at todo_wine@and can hide brackets
+ at todo_wine@---
 noecho1
 noecho2
 echo3
-- 
2.7.4




More information about the wine-patches mailing list