title: Bash script 'if' statement that calls a function with parameters
body: <p>I want an if statement in my bash script that does:</p>
  
  <pre><code>if [[ "$v" == "A" || my_func $x $y ]] ; then
  </code></pre>
  
  <p>but I get the error "conditional binary operator expected".
  I've tried putting quotes round the parameters in the call to my_func, but still no good. Tried playing around with eval, which didn't help either.</p>
  
  <p>Thanks for any help.</p>