title: pgrep -f with multiple arguments
body: <p>i try to find a specific process containing the term "someWord" and two other terms represented by $1 and $2</p>
  
  <pre><code> 7   regex="someWord.*$1.*$2"
   8   echo "$regex"
   9   [ `pgrep -f $regex` ] &amp;&amp; return 1 || return 0
  </code></pre>
  
  <p>which returns</p>
  
  <pre><code>./test.sh foo bar
  someWord.*foo bar.*
  ./test.sh: line 9: [: too many arguments
  </code></pre>
  
  <p>What happens to my regular expression? Doing that pgrep directly in the shell works fine.</p>