> Machine Type: i486-pc-linux-gnu
>
> Bash Version: 3.2
> Patch Level: 39
> Release Status: release
>
> Description:
>
> \w in PS1 prompt string confuses bash when ending in \
>
> The standard prompt setting in ubuntu is
> PS1="${debian_chroot:+($debian_chroot)[EMAIL PROTECTED]:\w\$"
>
> which seems harmless enough. However, if you do
>
> mkdir /tmp/chaos\\ ; cd /tmp/chaos\\
>
> the prompt display hopelessly confuses bash. At first it displays
> nothing at all, then with repeated entries of RET fragments of color
> ANSI sequences appear, like
>
> [EMAIL PROTECTED]:/tmp/xxx$ mkdir /tmp/chaos\\ ; cd /tmp/chaos\\
> ]0;[EMAIL PROTECTED]: /tmp/[EMAIL PROTECTED]:/tmp/chaos\$
> ]0;[EMAIL PROTECTED]: /tmp/[EMAIL PROTECTED]:/tmp/chaos\$
Since bash doesn't output any of that by default, I suspect you have something
in PROMPT_COMMAND that tries to write to an xterm title bar and is confused by
the escape at the end of the prompt string.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
Chet Ramey, ITS, CWRU [EMAIL PROTECTED] http://tiswww.tis.case.edu/~chet/