4 ms·
> Note that this is a horrible security issue. The newlines cause the text to be immediately executed if I pasted it into a command line window. Modern termina
by lilyball 7y ago
> Note that this is a horrible security issue. The newlines cause the text to be immediately executed if I pasted it into a command line window.
Modern terminals & shells guard against this. Modern *nix terminals emit special "paste bracketing" codes around the pasted text, which the shell can use to turn off handling of newline (such that you just get a multiline input instead of executing text). I don't know about Windows but I would hope Windows terminals have similar capabilities.
- ByThyGrace 7y agoHmm I'm concerned that zsh doesn't seem to do this by default.
- lilyball 7y ago/bin/zsh (version 5.3) in Terminal.app on macOS 10.14.6 does.