Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • Happens with Cygwin bash too. Line editing is vi mode. Relatively recently. Looking forward to an answer here, but I would suggest that it is indeed a readline change Commented Feb 5, 2022 at 14:07
  • 1
    @Quasímodo not really, no. I want the behavior that the other question is trying to avoid. Sure, you can maybe guess that setting the same setting to off (which isn't mentioned there) might help, but the questions are diametrically opposed with one asking "how can I NOT do foo" and the other asking "how can I DO foo?". Also, the dupe does not address what changed which roaima explains nicely. Commented Feb 5, 2022 at 16:01
  • 3
    @terdon (with your regular - emphasis on "regular" - user hat still on you) - this is something I'd STRONGLY recommend against doing. The one time that this will prevent your from accidentally running a broken/dangerous command will mean that all the times you were mildly inconvenienced by having to press enter will be paid over. Commented Feb 6, 2022 at 6:32
  • 3
    I think @muru's point is worth emphasizing; I use the command line a lot, including copy/pasting text (which may be commands). Newlines included in the paste would often run a command before I had the chance to finetune it, and an incorrect paste could really mess things up. This has caused actual damage for me more than once. It took a bit of effort to get used to the new behaviour, but now I much prefer it. Commented Feb 6, 2022 at 11:16
  • 2
    @muru I would rather risk the malicious command. I very regularly need to copy/paste commands from my Readme files to reproduce things, and very often need to paste multiple commands that need to run sequentially, and having to switch from "mouse mode" to "keyboard mode" is incredibly annoying. On the other hand, I very rarely copy/paste commands from the internet so the chances of my having a malicious command in my clipboard are minimal. The annoyance far outweighs the risk for me. I check my commands before pasting. Commented Feb 6, 2022 at 11:18