aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/compound_command.bash')
-rw-r--r--scripts/compound_command.bash22
1 files changed, 22 insertions, 0 deletions
diff --git a/scripts/compound_command.bash b/scripts/compound_command.bash
index fe3eac4..f328f85 100644
--- a/scripts/compound_command.bash
+++ b/scripts/compound_command.bash
@@ -385,3 +385,25 @@ case ${EAPI} in
*)
echo "Unknown EAPI=${EAPI} for ruby-ng.eclass"
esac
+
+if [[ 1 == 0 ||
+ 1 == 0
+|| 1 == 0
+ || 1 == 0 || # Extra space here
+ 1 == 1 ]]; then
+ echo or
+fi
+
+if [[ 1 == 1 # Extra space here
+ && 1 == 1 && 1 == 1 &&
+ 1 == 1&&
+ 1 == 1 ]]; then
+ echo and
+fi
+
+if [[ 1 == 1 &&
+ 1 == 0 || 1 == 1
+ && 1 == 1 ||
+ 1 == 1 && 1 == 1 ]]; then
+ echo and or
+fi