4 ms·
Have you never pasted a new line?
by whatwhaaaaat 3y ago
Have you never pasted a new line?
- jowea 3y agoThere are terminals that have protections against that AFAIK.
- kzrdude 3y ago`set enable-bracketed-paste on` in .inputrc (at least compatible with bash, terminal also needs support)
- paulddraper 3y agoI'm sure they exist. Gnome shell doesn't AFAIK. It's an odd thing to protect from; any program that has access to the X11 clipboard is going to be able to run a process as the current user.
- bilkow 3y agognome-terminal does support bracketed paste[0], and both bash 5.1 and zsh 5.1 enable it by default, so if you paste into it it will input a newline in the prompt instead of executing the command [0] https://en.m.wikipedia.org/wiki/Bracketed-paste https://en.m.wikipedia.org/wiki/Bracketed-paste
- paulddraper 3y agoThanks