<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows [Version 10.0.18362.418]
Windows Terminal version (if applicable): All"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18362.418]
Windows Terminal version (if applicable): All
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<ol dir="auto">
<li>Write some characters with linefeed in the notepad, such as:</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="a
b
c
d
e"><pre class="notranslate"><code class="notranslate">a
b
c
d
e
</code></pre></div>
<ol start="2" dir="auto">
<li>Copy them</li>
<li>Open Windows Terminal and launch WSL</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="wsl"><pre class="notranslate"><code class="notranslate">wsl
</code></pre></div>
<ol start="4" dir="auto">
<li>use <code class="notranslate">cat</code> command to write into a text file:</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="cat &gt; test.txt &lt;&lt; EOF"><pre class="notranslate"><code class="notranslate">cat &gt; test.txt &lt;&lt; EOF
</code></pre></div>
<ol start="5" dir="auto">
<li>Paste the copied characters into the terminal</li>
</ol>
<h1 dir="auto">Expected behavior</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PS C:\Users\hez20&gt; wsl
hez2010@DESKTOP-CD2C52F:/mnt/c/Users/hez20$ cd ~
hez2010@DESKTOP-CD2C52F:~$ cat &gt; test.txt &lt;&lt; EOF
&gt; a
&gt; b
&gt; c
&gt; d
&gt; e
&gt; f"><pre class="notranslate"><code class="notranslate">PS C:\Users\hez20&gt; wsl
hez2010@DESKTOP-CD2C52F:/mnt/c/Users/hez20$ cd ~
hez2010@DESKTOP-CD2C52F:~$ cat &gt; test.txt &lt;&lt; EOF
&gt; a
&gt; b
&gt; c
&gt; d
&gt; e
&gt; f
</code></pre></div>
<h1 dir="auto">Actual behavior</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PS C:\Users\hez20&gt; wsl
hez2010@DESKTOP-CD2C52F:/mnt/c/Users/hez20$ cd ~
hez2010@DESKTOP-CD2C52F:~$ cat &gt; test.txt &lt;&lt; EOF
&gt; a
&gt;
&gt; b
&gt;
&gt; c
&gt;
&gt; d
&gt;
&gt; e
&gt;
&gt; f"><pre class="notranslate"><code class="notranslate">PS C:\Users\hez20&gt; wsl
hez2010@DESKTOP-CD2C52F:/mnt/c/Users/hez20$ cd ~
hez2010@DESKTOP-CD2C52F:~$ cat &gt; test.txt &lt;&lt; EOF
&gt; a
&gt;
&gt; b
&gt;
&gt; c
&gt;
&gt; d
&gt;
&gt; e
&gt;
&gt; f
</code></pre></div>
<p dir="auto">Each linefeed was repeated twice.</p>
<p dir="auto">Multiline text pasted from the clipboard includes CRLF pairs in all cases; this is inappropriate for "Unix-space" sessions, such as WSL.</p>
<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows [Version 10.0.18362.145]
Windows Terminal version (if applicable): 71e19cd82528d66a0a7867cbed85990cfc1685f1"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18362.145]
Windows Terminal version (if applicable): 71e19cd82528d66a0a7867cbed85990cfc1685f1
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Select multiline text in Terminal.<br>
Copy it (via right-click, ostensibly)<br>
Paste it (again via right-click)</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">When pasting into a Unix-space session -- such as WSL -- pasted text should have a reasonable set of line-ending characters.</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">Line endings are "doubled" on text paste to Unix-space sessions.</p>