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).
Gregory
  • Behavior c... Gregory Heytings via Bug reports for the GNU Bourne Again SHell
    • Re: B... Chet Ramey
      • R... Gregory Heytings via Bug reports for the GNU Bourne Again SHell
        • ... Chet Ramey
          • ... Gregory Heytings via Bug reports for the GNU Bourne Again SHell
            • ... Chet Ramey

Reply via email to