Your message dated Thu, 8 Aug 2024 15:59:13 +0200 with message-id <[email protected]> and subject line Re: Bug#948343: bash: Cursor lands before the prompt in specific case has caused the Debian Bug report #948343, regarding bash: Cursor lands before the prompt in specific case to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 948343: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=948343 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: bash Version: 5.0-5 Severity: normal Tags: upstream Dear Maintainer, With a really specific procedure I'm able to reproduce an issue I'm having ~weekly: - Move ~/.bashrc elsewhere just to start clean - Start a new terminal (in my case tput cols tells it's 79 columns, beware, the bug varies according to the terminal width). - run `bash --norc` in it, to start clean - Prompt in my case is `bash-5.0$ `, beware, the bug varies according to the length of the prompt. - type `printf "Hello World\n "` (1) - hit the `uparrow` of your keyboard to see the printf again (2) - hit C-a (bash shortcut for beginning-of-line) (3) After (1) you should see (I'm using ■ to mark the place of the cursor): bash-5.0$ printf "Hello World\n Hello World bash-5.0$ ■ After (2) you should see: bash-5.0$ printf "Hello World\n " Hello World bash-5.0$ printf "Hello World\n "■ After (3) you should see: bash-5.0$ printf "Hello World\n " Hello World ■ bash-5.0$ printf "Hello World\n " The point should not go that far, it should stop on the `p` of `printf`. I straced and played a bit with, and noted a few interesting things: - Bug appear, or not, depending on the length of the prompt - Bug appear, or not, depending on the width of the terminal - When beginning-of-line calls `write(2, "\r\33[C\33[C\33[C\33[C\33[C...` I have the bug - When beginning-of-line calls `write(2, "\10\10\10\10\10\10\10\10\10...` I don't have the bug -- System Information: Debian Release: bullseye/sid APT prefers testing APT policy: (990, 'testing'), (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 5.3.0-3-amd64 (SMP w/16 CPU cores) Kernel taint flags: TAINT_WARN Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages bash depends on: ii base-files 11 ii debianutils 4.9.1 ii libc6 2.29-3 ii libtinfo6 6.1+20191019-1 Versions of packages bash recommends: ii bash-completion 1:2.8-6 Versions of packages bash suggests: pn bash-doc <none> -- no debconf information
--- End Message ---
--- Begin Message ---Version: 5.2.21-2.1 On Tue, 07 Jan 2020 16:18:58 +0100 Julien Palard <[email protected]> wrote:- Move ~/.bashrc elsewhere just to start clean - Start a new terminal (in my case tput cols tells it's 79 columns, beware, the bug varies according to the terminal width). - run `bash --norc` in it, to start clean - Prompt in my case is `bash-5.0$ `, beware, the bug varies according to the length of the prompt. - type `printf "Hello World\n "` (1) - hit the `uparrow` of your keyboard to see the printf again (2) - hit C-a (bash shortcut for beginning-of-line) (3) After (1) you should see (I'm using ■ to mark the place of the cursor): bash-5.0$ printf "Hello World\n Hello World bash-5.0$ ■ After (2) you should see: bash-5.0$ printf "Hello World\n " Hello World bash-5.0$ printf "Hello World\n "■ After (3) you should see: bash-5.0$ printf "Hello World\n " Hello World ■ bash-5.0$ printf "Hello World\n "Hi, this issue does not seem to affect version 5.2.21 of bash. Please reopen this bug if you can still reproduce this issue. Regards, -- Gioele Barabucci
--- End Message ---

