On Sun, Feb 19, 2023 at 03:05:24PM +0200, Mr. Dick Steel wrote:
4. Use up arrow to scroll cmd history up until you hit:
"$ valgrind --leak-check=full
./target/debug/hostname-ip-address"
and press up arrow once more and you will get:
"$ valgrind -cd rust/hostname-ip-address"
Expected result:
"$ cd rust/hostname-ip-address/"
This sounds like a PS1 (prompt) issue to me. Do you have color escape
sequences, or other such things, in your PS1 variable? If so, they
have
to be isolated within \[ \] markers, so bash knows they don't cause
the cursor to move.
https://mywiki.wooledge.org/BashFAQ/053