Package: bash
Version: 2.05b-26
Followup-For: Bug #352234
Here's an extract from my /etc/profile:
-- snip --
# prompt
clr=$( grep "$(/usr/bin/tty) " /etc/promptcolor | cut -d" " -f2 )
color="\\e[${clr}m"
reset="\\e[0m"
marker1='${debian_chroot:+($debian_chroot)}'
marker2="\$USER=\\u \\h $(basename $(/usr/bin/tty)) \\w"
marker3="$marker1\\[$reset$color\\]$marker2 \\[$reset\\]\\n\\$ "
marker3=" $marker1\\[$reset$color\\]$marker2 \\[$reset\\]\\n\\$ "
case "$TERM" in
screen*) :
PS1='\[\033k'"$marker1 $marker2"'\033\\'"$marker3"
;;
xterm*|rxvt*) :
PS1='\[\033]0;'"$marker1 $marker2"'\007'"$marker3"
;;
*) :
PS1="$marker3"
;;
esac
export PATH PS1 color
-- snip --
Originally, it only had the first of the two marker3 lines. That worked
fine when ssh'ing in with TERM=xterm, but recently broke horribly with
TERM=screen. The second line *does* work with TERM=screen - it really is
the single space character that makes the difference.
Presumably bash gets confused at that position.
Hope this helps finding the bug.
(Symptoms of the breakage: no visible prompt, pressing enter several
times spews *parts* of the *raw* value of PS1 (some parts of marker1).
Something is wrong with the terminal itself: after exiting, the prompt
on the other side is damaged - missing characters - until I run 'reset'.)
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.13.2+colo.20051014
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages bash depends on:
ii base-files 3.1.2 Debian base system miscellaneous f
ii libc6 2.3.6-7 GNU C Library: Shared libraries
ii libncurses5 5.5-2 Shared libraries for terminal hand
ii passwd 1:4.0.3-31sarge5 change and administer password and
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]