I'm having issues with Cygwin's Copy/Paste functionality on a fresh install.
If I scrunch my cygwin window small, and then type a command that is wider than it is (such as echo testestsetsetestestsetsetsetsetsetsetsetset
) and hit enter, the command executes successfully.
If I then copy that command from the cygwin window and paste it in, say, Notepad++, the command has a line break in it where the line wrapped in the window. What this means in practice is that if I paste that command into cygwin again, it'll think it is two commands, which is not correct.
How can I get cygwin to not write a newline character in the line breaks (my old installation did not have this problem btw. Something about new cygwin/windows 10/some bad setting is causing this).
bash.exe
fromcmd
it will show this behaviour. As @matzeri says, it works as you would expect inmintty.exe
, which is how it is launched from the start menu.