title: Why does $((true == false)) evaluate to 1 in bash?
body: <p>Why does bash have the following behavior?</p>
  
  <pre class="lang-bsh prettyprint-override"><code>echo $((true == false))
  1
  </code></pre>
  
  <p>I would have thought that this would print <code>0</code>, but it prints <code>1</code>.</p>
  
  <p>This is further complicated by the following facts:</p>
  
  <pre><code>&gt; echo $((true))
  0
  &gt; echo $((false))
  0
  &gt; echo $((true == true))
  1
  &gt; echo $((false == false))
  1
  </code></pre>