title: How to use curl in a shell script?
body: <p>I'm trying to run this shell script in order to install RVM in an Ubuntu box</p>
  
  <pre><code>#!/bin/bash
  RVMHTTP="https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer"
  CURLARGS="-f -s -S -k"
  
  bash &lt; &lt;(curl $CURLARGS $RVMHTTP)
  </code></pre>
  
  <p>but I get the following error</p>
  
  <blockquote>
    <p>Syntax error: Redirection unexpected</p>
  </blockquote>
  
  <p>Also tested not using the variables, but same result, could you tell what I'm missing?</p>