crquan@gmail.com wrote:
> Bash Version: 3.2
> Patch Level: 39
> Release Status: release
>
> Description:
> I have set PS1 var to this:
> PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \[\e[1;33;40m\]$?
> \$\[\033[00m\] '
> according to bash manual, if I use character like \e[1;33;40m similar
> that
> doesn't occupy the width, use \[ and \] sequence to close them,
>
> But unfourtunalte, that seems not work.
Can you give an example of what doesn't work? It seemed OK for the basic
stuff I tried on bash-3.2.48.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/