title: Wrong arguments count in next function calls
body: <p>I've got function ShowJobHistory, and it's called from another. At first call of this function everything works fine, it count proper number of arguments, parse them as  I want to. But in next calls, even if I specify a multiple arguments, this function treat them as one, and it looks ( jb.RJBGID=12871 12873 12868 ) after parsing them. What's wrong with my function?</p>
  
  <pre class="lang-bsh prettyprint-override"><code>ShowJobHistory () {
  conditions=
  argCount=$#
  if [[ $argCount -ne 0 ]] then
      if [[ $1 == [iI] &amp;&amp; $argCount -eq 3 ]] then
          if [[ $2 -lt $3 ]] then
              conditions="( jb.RJBGID between $2 and $3 )"
          else
              conditions="( jb.RJBGID between $3 and $2 )"
          fi
      else
          conditions="("
          for nr in $@
          do
              conditions="${conditions} jb.RJBGID=${nr} or "
          done
          conditions=${conditions%or }
          conditions=$conditions")"
      fi
  
      typeset query
  </code></pre>
  
  <p>Below function calls ShowJobHistory.
  </p>
  
  <pre><code>ShowJobHistoryMenu () {
  typeset jobID
  save=
  echo "Enter jobIDs" 
  read jobID?"Enter jobID: "  
  while [[ $save != [nNyY] ]]
  do
      read save?"Save output to file? [y/n]"
  done
  if [[ save = [yY] ]] then
      ShowJobHistory $jobID | tee $TRACEDIR/output.txt
  else
      ShowJobHistory $jobID
  fi
  }
  </code></pre>