4 ms·
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" Ignoring the obvious stupidity here, why does it invoke Ruby
by PeCaN 8y ago
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Ignoring the obvious stupidity here, why does it invoke Ruby only to invoke curl?
- tolmasky 8y agoIt curls the install script, which is passed to ruby as a string which is run.
- PeCaN 8y agoAh, duh, you're right. I forgot $() is bash syntax and not the Ruby syntax for running an external command. Thanks, and yikes.
- analogmemory 8y agoBecause the install script is in ruby?
- acobster 8y agoThat's not what it's doing. It's downloading Ruby code and then running it. The "$(...)" is evaluated first.