How to use curl in a shell script?

I'm trying to run this shell script in order to install RVM in an Ubuntu box

CURLARGS="-f -s -S -k"

bash < <(curl $CURLARGS $RVMHTTP)

but I get the following error

Syntax error: Redirection unexpected

Also tested not using the variables, but same result, could you tell what I'm missing?


Firstly, your example is looking quite correct and works well on my machine. You may go another way.


All output now storing in ./ file, which you can edit and execute.

CURLARGS="-f -s -S -k"

# you can store the result in a variable

# or you can redirect it into a file:
$CURL $CURLARGS $RVMHTTP > /tmp/rvm-installer


Execute bash script from URL

Need Your Help

Specific events in sublime text 3

sublimetext sublimetext3

I am writing a plugin for Sublime Text 3 such that I need to do either of two things:

How do I wait for a user response when using UIAlertView?

objective-c modal-dialog uialertview objective-c-blocks wait

I'm having a lot of trouble trying to get my Objective-C code to wait appropriately for user input from a UIAlertView before triggering subsequent code. For example, I have the following code: