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: Chet Ramey
Subject: Re: Cmd history is not displaying correctly
Date: Mon, 20 Feb 2023 10:13:43 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.8.0

On 2/19/23 9:34 AM, Mr. Dick Steel wrote:
On 19-02-2023 16:21, Martin D Kealey wrote:


at this point, what is in the file? does « wc -l  .bash_history » report 13?


It reports:
13 .bash_history

If I disable PS1 coloring, everything works correctly.

You can also mark these sequences of non-printing characters in the prompt
string using the \[ and \] escape sequences, so readline knows about them.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/




reply via email to

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