When I copy-paste text into console, all the newlines get removed ... which is to say, if I have:
echo "barrio" > bar.txt
and I copy paste that into console, I would expect it to execute as four lines of commands, and instead it mushes them into one line ...
mkdir foocd fooecho "barrio" > bar.txtdir
Now, that wouldn't be so bad if it at least had the presence of mind to insert "; " characters where the line breaks are, so I could still execute it, but as-is it means I basically can't paste into the console except very carefully one line at a time.
I have an autohotkey script to "fix" that temporarily ... it disregards the user's settings for paste hotkeys (that is, the paste keys are hardcoded in this little script as Ctrl+v or the mouse right-click). And technically, it doesn't paste at all, it simulates keyboard input.
Loop, parse, clipboard,`n,`r
Log in to post a comment.