Re:Don't copy paste from a website to a terminal
by e12e on Thursday November 12, 2015 @02:52PM
(#10555635)
But you could still paste ^d (End-of-file)? Granted, if you paste ^d in the terminal, you'd exit, but one could do this?:
dangerous-commands \n
^d #eof
dangerous-commmands \n #repeat
(I'm not actually sure if you can paste ^d in general... but I expect you could?)
Re:Don't copy paste from a website to a terminal
by wyldfire on Thursday November 12, 2015 @03:50PM
(#10556009)
Great point, we've just fired another salvo in an escalating war. The only winning move is not to paste. :)
I could have just as easily opened vim/emacs/notepad and done the same, or for that matter, written the contents to an actual file instead of redirecting the contents to /dev/null.