Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Pasting text containing LF or CRLF behaves differently in different shells. #167
When pasting a block of text containing LF characters into a WSL instance, it works as expected. When pasting the same block of text containing CRLF characters, it will paste a blank line in between every line that was copied. I noticed this inside a python session, because it breaks the indentation when pasting. The opposite happens in a CMD session. Pasting CRLF works normally, and pasting LF will paste all the lines into one line.
To reproduce the issue, I just had a block of echo commands in VS Code, and I switched between LF/CRLF when copying and pasting.