Re: Strange behavior with PS1 prompt

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

 



Cameron Simpson wrote:

> The \[ and \] begin and end a series of non-printable
> characters. This tells bash not to count those
> characters when determining the length of the
> prompt. So the color escape sequences are wrapped
> in \[ and \].
By Jove, you are right! No wonder I have seen the 
problem on and off over the years! I just tested this 
solution and it appears to work!

> This is all beautiful, but I think you need to use 
single quotes instead of doubles.
So far, it appears that double quotes work.

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux