On 2/1/24 7:55 AM, Korneel Dumon wrote:
Bash Version: 5.1 Patch Level: 16 Release Status: releaseDescription: 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"}'
This particular curl command returns a JSON message that does not end with a newline. Bash (readline) starts reading the next command with the physical cursor at column 1, which it has no way of knowing. Readline assumes the cursor starts at column 0 when it computes where the cursor needs to be for redisplay. You can hit newline or use ^L to redraw the line and make sure it starts in column 0. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU c...@case.edu http://tiswww.cwru.edu/~chet/
OpenPGP_signature.asc
Description: OpenPGP digital signature