logoalt Hacker News

esafakyesterday at 4:07 PM2 repliesview on HN

How is that any safer?


Replies

godelskiyesterday at 4:28 PM

First off, I never used sudo...

Second off, you're not steaming into bash

Third, you gotta read between the lines a little. I used some convenience considering my audience is programmers. Don't use && or shove && `less foo.sh` in the middle. There's a million options here

fc417fc802yesterday at 4:50 PM

Don't take the example overly literally. Saving to file means you can read it before executing it.

That aside, it protects you from this gaping hole of an exploit mechanism. https://news.ycombinator.com/item?id=17636792