<div class="gmail_quote">On Wed, Mar 4, 2009 at 6:04 PM, Robin <span dir="ltr">&lt;<a href="mailto:robince@gmail.com">robince@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">Right, that was wrong, both cat &lt;&lt; and echo &quot; give corruption<br></div></div>
<br>
In fact even cat &gt; test which I&#39;m pretty sure doesn&#39;t use readline at<br>
all still has some problems (although much fewer and they seem more<br>
deterministic).<br>
<br>
Sorry that this is getting off topic for ipython now... but it is<br>
probably the same problem as :<br>
<a href="https://svn.enthought.com/epd/ticket/324" target="_blank">https://svn.enthought.com/epd/ticket/324</a><br>
so I guess it will continue to come up from time to time.<br></blockquote></div><br><div>Yes, I can confirm that cat &lt;&lt; EOF gives the same problem in Terminal.app in both Tiger 10.4.11 and Leopard 10.5.6, and iTerm in Tiger. I cannot seem to paste into xterm, so I could not check it. So it looks like Python is off the hook (Python 2.3 now looks flaky too...).</div>
<div><br></div><div>The problem still only occurs when pasting many multiple lines. A string without newlines pastes without a problem. I toggled Terminal -&gt; Window Settings -&gt; Emulation -&gt; Paste Newlines as Carriage Returns, with no effect on the problem. I could not fix the problem via line endings either. The next step might be to use ktrace (Tiger) or dtrace / dtruss (Leopard) on the Terminal app to see where the characters go.</div>
<div><br></div><div>I guess we&#39;ll have to wait for Snow Leopard (although the problem managed to persist from Tiger to Leopard...).</div><div><br></div><div>Regards,</div><div>Ludwig</div><div><br></div>