bug-bash
[Top][All Lists]
Advanced

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

Re: Cmd history is not displaying correctly


From: Greg Wooledge
Subject: Re: Cmd history is not displaying correctly
Date: Sun, 19 Feb 2023 09:07:30 -0500

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



reply via email to

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