Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

No, you were taught the right thing. You never know what some random JavaScript is gonna do to the contents of your clipboard when copying from a web page.

Best practice, IMO, is to open as dumb an editor as you can find and pasting the commands into an editor buffer for inspection before running anything in the shell. And, if you don’t understand what it’s ask you to paste into your shell, don’t do it.

Even if you run with JavaScript off entirely, this at least makes you think before you do anything potentially destructive.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: