.inputrc (489B)
1 $if term=dumb-emacs-ansi 2 # Turn off bracketed paste to avoid empty lines cluttering M-x shell. 3 # 4 # This can happen e.g. when running 'bash' or 'gdb' from M-x shell: 5 # the mode spawns the initial shell with --no-editing, but for some 6 # reason, as soon as TERM is not "dumb", the shell/comint/bash 7 # --no-editing/[one-more-interpreter] stack emits bracketed-paste 8 # sequences, and however comint washes those, spurious newlines still 9 # make it through. 10 set enable-bracketed-paste off 11 $endif