Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Gentoo User (http://www.linux-archive.org/gentoo-user/)
-   -   Bash Duplicated Prompt (http://www.linux-archive.org/gentoo-user/684050-bash-duplicated-prompt.html)

LiangYun Gong 07-16-2012 05:56 AM

Bash Duplicated Prompt
 
Hi,


I have this problem when ssh into my machine. The bash prompt is displayed as below.
When I ctrl + l the screen, it backs to normal.

local prompt is okay.
This problem is really annoying. Anybody has any idea?



GNU bash, version 4.2.36(1)-release (i686-pc-linux-gnu)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>


This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

kit393@gentoo-box:~kit393@gentoo-box ~ $ echo $PS1
[33[01;32m]u@h[33[01;34m] w $[33[00m]



kit393@gentoo-box:~kit393@gentoo-box ~ $ env
MANPATH=/usr/local/share/man:/usr/share/man:/usr/share/gcc-data/i686-pc-linux-gnu/4.5.3/man:/usr/share/binutils-data/i686-pc-linux-gnu/2.22.52.0.1/man
TERM=xterm

SHELL=/bin/bash
HISTSIZE=5000
XDG_SESSION_COOKIE=a1a238c1c0beb1e1d873f6780000001 8-1342417590.318348-451680483
VBOX_APP_HOME=/opt/VirtualBox
XIM_PROGRAM=fcitx
SSH_TTY=/dev/pts/4
HISTFILESIZE=5000
USER=kit393

LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so =01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;3 7;41:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw= 30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz =01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma= 01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;3 1:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz= 01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01 ;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31 :*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:* .ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.r z=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp =01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=0 1;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01 ;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01; 35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;3 5:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35 :*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35: *.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.r m=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli =01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01; 35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35 :*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:* .pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*. diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.a ac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.mid i=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg= 00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00; 36:*.spx=00;36:*.xspf=00;36:

PRELINK_PATH_MASK=/opt:/usr/lib/klibc:/usr/lib/libfreebl3.so:/usr/lib/libnssdbm3.so:/usr/lib/libsoftokn3.so
GUILE_LOAD_PATH=/usr/share/guile/1.8
GDK_USE_XFT=1
PAGER=/usr/bin/less
CONFIG_PROTECT_MASK=/etc/gentoo-release /etc/sandbox.d /etc/fonts/fonts.conf /etc/gconf /etc/terminfo /etc/ca-certificates.conf /etc/revdep-rebuild

XDG_CONFIG_DIRS=/etc/xdg
MAIL=/var/mail/kit393
PATH=/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.5.3:/usr/games/bin
XIM=fcitx
QT_IM_MODULE=xim
DISTCC_LOG=/var/log/distcc.log
PWD=/home/kit393

XMODIFIERS=@im=fcitx
EDITOR=/usr/bin/vi
LANG=en_US.utf8
GSETTINGS_BACKEND=gconf
TZ=Asia/Singapore
QT_GRAPHICSSYSTEM=raster
DISTCC_VERBOSE=1
DCCC_PATH=/usr/lib/distcc/bin
HISTCONTROL=ignoreboth:erasedups

MANPAGER=vimmanpager
SHLVL=1
HOME=/home/kit393
LESS=-R -M --shift 5
LOGNAME=kit393
GCC_SPECS=
LC_CTYPE=zh_CN.UTF-8
XDG_DATA_DIRS=/usr/local/share:/usr/share
LESSOPEN=|lesspipe %s
INFOPATH=/usr/share/info:/usr/share/gcc-data/i686-pc-linux-gnu/4.5.3/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.22.52.0.1/info

RUBYOPT=-rauto_gem
OPENGL_PROFILE=xorg-x11
XSESSION=awesome
GTK_IM_MODULE=xim
_=/usr/bin/env
kit393@gentoo-box:~kit393@gentoo-box ~ $




Thanks and Regards,
Liang Yun

LiangYun Gong 07-16-2012 05:58 AM

Bash Duplicated Prompt
 
attached is screen shot.



On Mon, Jul 16, 2012 at 1:56 PM, LiangYun Gong <kit393@gmail.com> wrote:

Hi,


I have this problem when ssh into my machine. The bash prompt is displayed as below.
When I ctrl + l the screen, it backs to normal.


local prompt is okay.
This problem is really annoying. Anybody has any idea?



GNU bash, version 4.2.36(1)-release (i686-pc-linux-gnu)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>



This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

kit393@gentoo-box:~kit393@gentoo-box ~ $ echo $PS1
[33[01;32m]u@h[33[01;34m] w $[33[00m]




kit393@gentoo-box:~kit393@gentoo-box ~ $ env
MANPATH=/usr/local/share/man:/usr/share/man:/usr/share/gcc-data/i686-pc-linux-gnu/4.5.3/man:/usr/share/binutils-data/i686-pc-linux-gnu/2.22.52.0.1/man
TERM=xterm


SHELL=/bin/bash
HISTSIZE=5000
XDG_SESSION_COOKIE=a1a238c1c0beb1e1d873f6780000001 8-1342417590.318348-451680483
VBOX_APP_HOME=/opt/VirtualBox
XIM_PROGRAM=fcitx
SSH_TTY=/dev/pts/4
HISTFILESIZE=5000
USER=kit393


LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so =01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;3 7;41:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw= 30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz =01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma= 01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;3 1:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz= 01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01 ;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31 :*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:* .ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.r z=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp =01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=0 1;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01 ;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01; 35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;3 5:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35 :*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35: *.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.r m=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli =01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01; 35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35 :*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:* .pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*. diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.a ac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.mid i=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg= 00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00; 36:*.spx=00;36:*.xspf=00;36:


PRELINK_PATH_MASK=/opt:/usr/lib/klibc:/usr/lib/libfreebl3.so:/usr/lib/libnssdbm3.so:/usr/lib/libsoftokn3.so
GUILE_LOAD_PATH=/usr/share/guile/1.8
GDK_USE_XFT=1
PAGER=/usr/bin/less
CONFIG_PROTECT_MASK=/etc/gentoo-release /etc/sandbox.d /etc/fonts/fonts.conf /etc/gconf /etc/terminfo /etc/ca-certificates.conf /etc/revdep-rebuild


XDG_CONFIG_DIRS=/etc/xdg
MAIL=/var/mail/kit393
PATH=/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.5.3:/usr/games/bin
XIM=fcitx
QT_IM_MODULE=xim
DISTCC_LOG=/var/log/distcc.log
PWD=/home/kit393


XMODIFIERS=@im=fcitx
EDITOR=/usr/bin/vi
LANG=en_US.utf8
GSETTINGS_BACKEND=gconf
TZ=Asia/Singapore
QT_GRAPHICSSYSTEM=raster
DISTCC_VERBOSE=1
DCCC_PATH=/usr/lib/distcc/bin
HISTCONTROL=ignoreboth:erasedups


MANPAGER=vimmanpager
SHLVL=1
HOME=/home/kit393
LESS=-R -M --shift 5
LOGNAME=kit393
GCC_SPECS=
LC_CTYPE=zh_CN.UTF-8
XDG_DATA_DIRS=/usr/local/share:/usr/share
LESSOPEN=|lesspipe %s
INFOPATH=/usr/share/info:/usr/share/gcc-data/i686-pc-linux-gnu/4.5.3/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.22.52.0.1/info


RUBYOPT=-rauto_gem
OPENGL_PROFILE=xorg-x11
XSESSION=awesome
GTK_IM_MODULE=xim
_=/usr/bin/env
kit393@gentoo-box:~kit393@gentoo-box ~ $




Thanks and Regards,
Liang Yun


All times are GMT. The time now is 11:39 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.