4 ms·
Realistically, I copy all sorts of commands from all sorts of sites. Some fool has a blog saying "Run `kubectl blahblah -o yaml`" and I copy `kubectl blahblah -
by renewiltord 6y ago
Realistically, I copy all sorts of commands from all sorts of sites. Some fool has a blog saying "Run `kubectl blahblah -o yaml`" and I copy `kubectl blahblah -o yaml` but he can then inject nonsense in it so when I paste it something else runs.
Fortunately, my terminal emulator doesn't run on paste.
- MereInterest 6y agoWhich terminal emulator do you use, and what happens if you paste something including newline characters?
- renewiltord 6y agoGnome Terminal 3.36.2 with Zsh The entire newline-inclusive text is pasted into the terminal and nothing is run until I hit Return. Input: https://pastebin.com/LpDW2r0d https://pastebin.com/LpDW2r0d Result: https://streamable.com/94z5oq https://streamable.com/94z5oq