Response to a recent claim that Ctrl+D in the terminal is like pressing Enter. It kind of is but it’s also misleading to say so without further explanation.
Response to a recent claim that Ctrl+D in the terminal is like pressing Enter. It kind of is but it’s also misleading to say so without further explanation.
Found it in the classic The UNIX Programming Environment from 1984:
But then, this is for return, which technically isn’t “enter”, but nowadays they are sort of interpreted the same by programs?
Yeah, it’s a bit philosophical.
bind -x '"\C-j":"echo a"'
in bash and Ctrl+J will do something different.stty
options which can change that though.