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
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 :-(
Where do you want to go today? - As far from Redmond as possible!
For public PGP-key: finger email@example.com
-----BEGIN PGP SIGNATURE-----
-----END PGP SIGNATURE-----
- BASH BUG
- From: Juli-Manel Merino Vidal <firstname.lastname@example.org>