In C++ language, we can do the following compound tests,
Code:
std::string a, b, c, d;
if ((a == "Yes" && b == "Yes" ) || (c == "Yes" && d == "Yes")) {
...
}
In bash scripts, how can we do the parenthesis around compound tests?
?
Code:
if [ "$a" = "Yes" ] && [ "$b = "Yes" ] [ "$c" = "Yes" ] && [ "$d" = "Yes" ]; then
...
fi
Thanks.