On one of my Linux machines, I create a long string and pass it to gnu less:
seq -w 1 999 | xargs echo | less
If I select the text that appears from gnu less (version 394) and copy + paste it somewhere else, the long line is split into several lines, each until the terminal width is not what I expected .
If I do the same in another Linux block (less than version 444), I can select gnu less from the buffer and copy + paste it somewhere else as one long line, which is the desired behavior. See Image:

The effect of sticking on emacs, an effect starting over, the desired effect below:

In both linux blocks, if I use cat instead of a smaller size and select from the output in the terminal, I can also copy + paste everything into one line:
seq -w 1 999 | xargs echo > /tmp/f cat /tmp/f
In contrast, in both linux blocks, the more command behaves the other way around, also breaking a long line into several lines when choosing to copy + paste:
seq -w 1 999 | xargs echo > /tmp/f more /tmp/f
Any ideas what could happen? How can I copy + paste from gnu less buffer with the same consistent behavior that I see when I make cat ?
source share