Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 68428 - /etc/profile PS1 color commands disable line breaks in bash
Summary: /etc/profile PS1 color commands disable line breaks in bash
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-21 11:55 UTC by Eric Brown
Modified: 2004-10-21 17:48 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Brown 2004-10-21 11:55:31 UTC
open an xterm, start typing a long command that goes past 1 line. (using bash)
you'll notice that the command hits the end of the screen, and just wraps around and starts writing over the prompt, and eventually over the command you're writing.

The default bash behavior is to have it break to a new line so you can actually see what you're typing.

changing /etc/profile to: export PS1='\u@\h \W \$' (essentially removing the colors) fixes this problem.

I would submit a fix with replacement colors for this, but i don't know how the color commands really work.  

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 SpanKY gentoo-dev 2004-10-21 12:50:14 UTC
neglected to provide `emerge info` like bug report page says to

what version of bash ?
what version of baselayout ?
if you re-emerge bash, does the problem go away ?
if you resize your terminal, does the prompt fix itself ?
Comment 2 Eric Brown 2004-10-21 17:40:56 UTC
re-emerging bash fixed the problem!

I don't know what to do with this bug, but someone told me to mark it as reopened since i provided the information you requested.  Maybe portage needs a bug fix to make sure bash gets updated whenever glibc is updated or something?

here's the info in case it's relevant later:

bash 2.05b-r9
baselayout 1.9.4-r5

resizing the terminal did not correct the behavior..




Portage 2.0.51 (default-x86-2004.0, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.7-gentoo-r11 i686)
=================================================================
System uname: 2.6.7-gentoo-r11 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.14.90.0.8-r1
Headers:  sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs distlocks sandbox"
GENTOO_MIRRORS="ftp://gentoo.mirrors.pair.com/ http://mirrors.tds.net/gentoo ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/ http://www.gigaload.org/gentoo.org/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow aalib alsa avi berkdb bzlib cdr cjk crypt curl dga dgs divx4linux doc gif gtk2 jpeg mad matroska mmx mng mpeg msn ncurses nls oggvorbis opengl pam pcre perl png posix postgres python quicktime readline samba sdl spell ssl tcpd tiff truetype unicode vhosts xv xvid zlib"
Comment 3 SpanKY gentoo-dev 2004-10-21 17:48:07 UTC
i broke the bash ebuilds for a period of ~2 days

if you were unlucky enough to emerge bash in that time period, you'd experience these problems

people in the unstable branch have already had an upgrade release so they're fixed; we'll be moving a bash to stable sometime in the near future so the few unlucky stable people will be fixed too