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

Re: BASH BUG



-----BEGIN PGP SIGNED MESSAGE-----

On Mon, 22 Nov 1999, Juli-Manel Merino Vidal wrote:

> Hi all,
> 
> try the following PS1 (for root) and notice what happens:
> 	export PS1='^[[1m^[[31m\h:\w\$^[[0m '
> 
> ^[ are scape secuences... This PS1 is red and shows the hostname and
> the path.
> Or try other scape secuences.
> 
> Before you reach the end of the line, bash jump to the start of it...
> and when you go back, it goes two lines above. Try it ! It's really
> annoying.

AFAIK (and can rember) there is some way to tell bash: "Hey! look, now
there comes an escape sequence of non printable caracters, take this in
account, when calculating the line lenght!" ... but I don't know, where I
found this information :-(

Martin

- -- 
Where do you want to go today? - As far from Redmond as possible!

For public PGP-key: finger mfluch@mathphys.fsk.uni-heidelberg.de

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv

iQCVAwUBODliqbCGSMW7I2etAQHY4AP/WUJDExyVq1k86cxtKL0P8pZ6TsSCyx/5
Ck8zcN4CZVoJVksytMID38fsH0g89LY3QHyt14rtiqcNzXWrkiahNDpttiq+bICL
R6QZ8AURqL9t/HLfooryy4IpHrNW0QxcXMVgRUikfdxM7TjkSDcYt+hUM2qXg6IL
4wEs5yLT+E8=
=LNE9
-----END PGP SIGNATURE-----


Reply to: