Hello folks, so I pasted a command in a command prompt and the command immediately executed without me pressing the enter key. On another machine the same command waits for me to press enter. I'm clueless. Would appreciate advice. Thanks.
If the pasted string contains the line ending characters (invisible), that is interpreted as pressing Return/Enter. If you mark the line from begin to end (same line), the characters are not included. But if you mark the line from the begin to the begin of the next line, they are included.
You could use Notepad++ and enable displaying the CR+LF characters. Then, you'll see if they are included and avoid to mark them.
I copied and pasted into notepad and edited then pasted into an email which I sent to another laptop and pasted into cmd and got the dissimilar results. I'll check again tommorrow maybe.
@andrew-s You just copied the last character in one case and you didn't in the other. It happens frequently even to experienced users. Just start selecting from the end of the last line, not from the beginning of the following (blank) one, if you want to avoid to copy the return character together with the text.
It's the CR symbol actually if you copied empty line from Unix line-ending (LF) file, it's not parsed as enter