From gentoo-user Mon Oct 09 09:36:30 2023 From: Nikos Chantziaras Date: Mon, 09 Oct 2023 09:36:30 +0000 To: gentoo-user Subject: [gentoo-user] Re: An annoyance in GPM, and a fix for it Message-Id: X-MARC-Message: https://marc.info/?l=gentoo-user&m=169684402904359 On 04/10/2023 21:11, Alan Mackenzie wrote: > Similarly, with a triple click, one can select a line, or a sequence of > lines. This is all very fine, but GPM adds a CR after each line in the > sequnce, INCLUDING THE LAST ONE. This makes it less useful for, say, > copying a shell script command from and editor onto a command line. > Because typically, you'd want to edit the command before executing it, Hm. Bash by default will ignore a newline when pasting something. I think it's relatively new feature (like a year or two.) It's called "bracketed paste." It should be enabled by default. If not, it can enabled with: set enable-bracketed-paste on