I've seen that rvm (ruby version manager) is installed using the following command:
bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )
So as I understand we get the script content and pass it to the bash (I believe < <
and <<
is the same thing?)
I am interested in the < <
part, found following description on the net:
<<
token Means use the current input stream as STDIN for the program until token is seen.
This is somehow not clear for me, can someone make an example or explain it in more simple way?
diff <(ls) <(ls -a)
– Khaja Minhajuddin Oct 18 '11 at 03:06bash <(curl ...)
instead ofbash < <(curl ...)
doesn't steal STDIN, so you're free to answer prompts and provide input in the script. – tylerl Dec 21 '11 at 19:23