title: Passing parameters to bash when executing a script fetched by curl
body: <p>I know how to execute remote Bash scripts like this:</p>
  
  <pre><code>curl http://example.com/script.sh | bash
  </code></pre>
  
  <p>or</p>
  
  <pre><code>bash &lt; &lt;( curl http://example.com/script.sh )
  </code></pre>
  
  <p>which give the same result.</p>
  
  <p>But what if I need to pass <em>arguments</em> to the bash script? It's possible when the script is saved locally:</p>
  
  <pre><code>./script.sh argument1 argument2
  </code></pre>
  
  <p>I tried several possibilities like this one, without success: </p>
  
  <pre><code>bash &lt; &lt;( curl http://example.com/script.sh ) argument1 argument2
  </code></pre>