In a rails book, the author wrote the script to install ruby rvm.
bash <<(curl -s https://rvm.beginrescueend.com/install/rvm)
But I don't understand how it works. Could you explain this?
|
In a rails book, the author wrote the script to install ruby rvm.
But I don't understand how it works. Could you explain this? |
|||||||||
|
|
There is a << operator (here document) but it is not what is used here. You have first an input redirection This command could have been written
but is just a convoluted way of doing:
|
||||
|
|
|
That link is broken now, but the website says to use this instead:
|
|||||||||||
|