/* Set of tests for bashevaluate */

bashevaluate("echo 1 + 2");
bashevaluate("echo Salut | cat");

[| bashevaluate("echo 1 + 2"),
   bashevaluate("echo Salut | cat") |];

[| bashevaluate("cat","This is some text\nAnd some other text") |];
[| bashevaluate("cat","This is some text\nAnd some other text\n") |];

bashevaluate("sed -e 's/a/e/g;'", "Hallo");

bashevaluate("false");
bashevaluate("true");

bashevaluate("caca 2> /dev/null");

restart;

verbosity = 2;

bashevaluate("echo 1 + 2");
bashevaluate("echo Salut | cat");

[| bashevaluate("echo 1 + 2"), 
   bashevaluate("echo Salut | cat") |];

[| bashevaluate("cat","This is some text\nAnd some other text") |];
[| bashevaluate("cat","This is some text\nAnd some other text\n") |];

bashevaluate("sed -e 's/a/e/g;'", "Hallo");

bashevaluate("false");
bashevaluate("true");

bashevaluate("caca 2> /dev/null");

/* A test for [#15162] Comparison of accesses to structures yields a wrong result or segfaults */

procedure a(n) { return n.a.b; }; procedure b(n) { return n.a.b; }; a == b; c = a; d = b; c == d;

