title: Bash, issue with if
body: <p>I'm parsing the result of a curl call into a variable this way:</p>
  
  <pre><code>result=$(curl some curl parameters)
  </code></pre>
  
  <p>I'm then making a check:</p>
  
  <pre><code>if [ $result != "job completed" ];
  then printf "ok"
  fi
  </code></pre>
  
  <p>but I'm getting the following error:</p>
  
  <pre><code>[: too many arguments
  </code></pre>
  
  <p>any idea why?</p>