For about the last 15 years
It looks like that practice goes back at least 40 years.
curl ... | sudo bash
Reply on news.ycombinator.com