bug-bash
[Top][All Lists]
Advanced

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

incorrect cursor position when navigating with 'ALT-b'


From: Korneel Dumon
Subject: incorrect cursor position when navigating with 'ALT-b'
Date: Thu, 1 Feb 2024 13:55:50 +0100

Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -g -O2 -flto=auto -ffat-lto-objects -flto=auto
-ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security
-Wall
uname output: Linux jarvis 5.15.0-91-generic #101-Ubuntu SMP Tue Nov 14
13:30:08 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu

Bash Version: 5.1
Patch Level: 16
Release Status: release

Description:
For a specific command, the result of navigating with 'ALT-b' to go back
one word at a time ends up being wrong. If I make a change after navigating
with 'ALT-b' the text looks correct, but if I then afterwards recall the
command I just executed with "arrow up", I can see that the text change was
different than what I did. I suspect the problem is caused by the
combination of single and double quotes in the last part of the command
(see below).

Repeat-By:
    Execute the following command:
    > curl -X POST -H "Content-Type: application/json"
https://ec.europa.eu/taxation_customs/vies/rest-api/check-vat-test-service
-d '{"countryCode":"BE", "vatNumber":"0000000000"}'
    Then use "arrow up" to recall the command and use "ALT-b" to navigate
to 'test-service' and
    change it to 'number'. Execute this command. It will fail and if you
recall it again using "arrow up"
    you should see that the text was changed in the wrong place (offset of
one character).


reply via email to

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