title: Checking number of KSH script arguments
body: <p>When <code>myscript</code> is executed with the following arguments it fails with error 255 (below)</p>
  
  <pre><code>         1     2     3                4       5     6     7
  myscript value value /my/path/to/file my_file /tmp/ value value
  </code></pre>
  
  <p>Checking number of passed arguments</p>
  
  <pre><code>if [ ${#} -ne 7 ]
  echo ${#}          // Actually prints 7
  then
      echo "ERROR 255: Must provide the following 7 parameters:
                     one two three four five six seven"
      exit 255
  fi
  </code></pre>
  
  <p>So ... If the number is not 7, exit, but do tell what the number is .. 7. </p>
  
  <p>Has the world gone mad? :)</p>