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

You find it irritating that terminals execute commands when they receive a newline, which is indistinguishable from pressing the enter key? The program is doing exactly as it should. Consider not copying newline characters, and you will solve the problem.


Bracketed paste has been a thing for twenty years now:

https://en.wikipedia.org/wiki/Bracketed-paste

Put in .inputrc:

https://wiki.archlinux.org/title/Readline#Bracketed_paste




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: