Pasting newlines into iex in Emacs shell buffer seems to hang

I run iex in a M-x shell buffer. I’ve noticed that when I paste text containing a newline, like 1+1\n, I never get any output back. #iex:break doesn’t break.

1+\n1\n does the same. 1+\n1 (with no terminal newline) does also.

1047 $ iex --version
Eshell V7.3 (abort with ^G)
IEx 1.3.0

GNU Emacs 24.5.1 (x86_64-apple-darwin13.4.0, NS apple-appkit-1265.21) of 2015-04-10 on builder10-9.porkrind.org

OSX El Capitan

I’ve noticed the same thing, but figured it was just because I was running in Windows (through cygwin bash though, I do not recall it happening on my linux home desktop). Interesting to see it happens on Mac as well…