title: How to use $# in bool expression in bash?
body: <p>I trying to check range regarding to the <code>$#</code> in bash, but I get unexpected result.<br />
  I write the following code:</p>
  <pre><code>#!/bin/bash
  if [[ $# &lt; 2 &amp;&amp; $# &gt; 3 ]]; then
     echo &quot;error&quot;
  fi
  </code></pre>
  <p>And I trying to running the script such: <code>./s 1 2 3 4 5 6</code> but I don't get the &quot;error&quot; message.<br />
  What is the reason of that?</p>