<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body>
<div style="font-family:sans-serif"><div style="white-space:normal">
<p dir="auto">On 2 Feb 2018, at 20:55, Martin Batholdy wrote:</p>
</div>
<div style="white-space:normal"><blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><p dir="auto">When parsing large amount of text from textmate2 to the terminal, it sometimes happens that strange parsing errors occur.<br>
Line breaks, white space, or symbols are arbitrarily not send correctly to terminal.</p>
</blockquote></div>
<div style="white-space:normal">
<p dir="auto">Do you mean <em>parsing</em> or <em>pasting</em>?</p>
<p dir="auto">If you mean <em>pasting</em>: when I have a temporary “script” in TextMate that I want to run in the current terminal I copy it to the clipboard and then in the terminal I run:</p>
<pre style="background-color:#F7F7F7; border-radius:5px 5px 5px 5px; margin-left:15px; margin-right:15px; max-width:90vw; overflow-x:auto; padding:5px" bgcolor="#F7F7F7"><code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0" bgcolor="#F7F7F7">pbpaste|sh
</code></pre>
<p dir="auto">This will run the script through the shell interpreter without issues like e.g. tab characters triggering expansion, or return triggering instant execution with potential reads from stdin that may swallow some of your script.</p>
</div>
</div>
</body>
</html>