title: Multiple conditions in case statement, bash
body: <pre><code>read X;
  read Y;
  read Z;
  if [[ $X,$Y,$Z -ne &quot;0&quot; ]]; then
    if [[ $X,$Y,$Z -ge 1 &amp;&amp; $X,$Y,$Z -le 1000 ]] &amp;&amp; [[ $((X+Y)) -gt $Z || $((Y+Z)) -gt $X || $((X+Z)) -gt $Y ]]; then
      case $X,$Y,$Z in
        $X -eq $Y &amp;&amp; $Y -eq $Z &amp;&amp; $X -eq $Z ) echo &quot;EQUILATERAL&quot;;;
  
      esac
    else
      echo &quot;bye&quot;;
    fi
  fi
  </code></pre>
  <hr />
  <p>*./bashtesting.sh: line 7: syntax error near unexpected token `-eq</p>
  <p>./bashtesting.sh: line 7: $X -eq $Y &amp;&amp; $Y -eq $Z &amp;&amp; $X -eq $Z ) echo &quot;EQUILATERAL&quot;;;*</p>
  <hr />
  <p>how to equate the three variables at a time?</p>