[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Behavior change

From: Gregory Heytings
Subject: Re: Behavior change
Date: Tue, 27 Oct 2020 13:55:13 +0000
User-agent: Alpine 2.22 (NEB 394 2020-01-19)

Hi Chet,

Thanks for your reply!

I just installed Bash 5.1 rc1.  I have IGNOREEOF set, and in 5.0 (and earlier version) when pressing C-d one sees:

$ Use "logout" to leave the shell.

With 5.1 rc1 there is a newline between the prompt and the message:

Use "logout" to leave the shell.

Is this change intentional?

It's bracketed paste, which is enabled by default in bash-5.1-rc1. The escape sequence that readline sends to the terminal to turn off bracketed paste ends with a carriage return, to avoid confusing the Linux terminal driver about the physical location of the cursor, so the cursor ends up at column 0. If readline has seen EOF, the shell is going to print something one way or another, and that text will overwrite what is on the current screen line. Readline outputs a newline to compensate.

Okay. I just set "set enable-bracketed-paste off" in my /etc/inputrc. Perhaps this change should be documented in CHANGES, and in the man page (where enable-bracketed-paste is said to have the default value Off).


reply via email to

[Prev in Thread] Current Thread [Next in Thread]