While adding 'enable-bracketed-paste off' into inputrc appears fixed this issue, no idea why it didn't fully work with bashrc only.
2021-01-14 20:59 GMT+08:00, 王昊然 <msl0000023...@gmail.com>: > I just found another issue with this new BASH/Readline bug/feature. > Even with 'bind "set enable-bracketed-paste off"', BASH 5.1 still > behaving differently from previous versions: if pasted text contains > new lines, BASH 5.1 would still buffering the pasted text, rather than > evaluating the pasted text as commands immediately as I expected. This > behavior is very annoying for me because I'm very used to repeat some > commands quickly by copy-pasting them. >