title: Passing variable in jq to filter with select fails
body: <p>When I do this:</p>
  <pre><code>$ jq -cr '.arr[]|select(.id==-1)|.desc' &lt;&lt;&lt;$'{&quot;arr&quot;:[{&quot;id&quot;:-1,&quot;desc&quot;:&quot;foo&quot;},{&quot;id&quot;:100}]}'
  foo
  </code></pre>
  <p>works as expected.</p>
  <p>But if I try to pass a variable in place of the index:</p>
  <pre><code>$ lookup=-1; jq -cr --arg l &quot;$lookup&quot; '.arr[]|select(.id==$l)|.desc' &lt;&lt;&lt;$'{&quot;arr&quot;:[{&quot;id&quot;:-1,&quot;desc&quot;:&quot;foo&quot;},{&quot;id&quot;:100}]}'
  no output
  </code></pre>
  <p>Doesn't produce output this time.</p>
  <p>How to fix this so that it works with shell variable <code>lookup</code>?</p>