Multi-line input only processes the first line

With ipython 5.0 and 5.1 (from anaconda) I have the issue that multiple lines of input in one batch via the tty are not processed correctly. Only the first line is evaluated. This can be verified via tmux and the send-keys feature:

Start ipython in a tmux session:

tmux new -s test ipython

And send two lines of code in one batch from another terminal:

tmux send-keys -t 'test' 'print 42' Enter 'print 44' Enter

Only the first line is evaluated.