Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 1078

Summary: /etc/profile is not nice to shells != bash
Product: Gentoo Linux Reporter: Spider <spider.gentoo>
Component: Current packagesAssignee: Martin Schlemmer (RETIRED) <azarah>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Spider 2002-03-11 15:54:23 UTC
Fex. 
emerge zsh and it will load /etc/profile, but the /etc/profile specifies the
prompt in a bash only way, and thus there is a conflict and zsh will have a real
ugly prompt.

the solution would be to move the prompt to a shell-dependant if /then/else
statement, or to a bash-only-loaded configuration.
Comment 1 Bruce A. Locke (RETIRED) gentoo-dev 2002-03-29 20:28:47 UTC
Issue should be fixed before 1.0 is released... stealing bug... feel free to
steal back if you were already working on a solution
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2002-04-01 12:38:02 UTC
Should be fixed on CVS.  Developers using zsh please get /etc/profile from
gentoo-src and let me know.
Comment 3 Spider (RETIRED) gentoo-dev 2002-04-04 00:39:35 UTC
where in gentoo-src is this located? I'm unable to find it, and the current
version in baselayout still breaks zsh

root@Darkmere spider # zsh
\[\033[01;32m\]\u@\h \[\033[01;34m\]\W \$ \[\033[00m\]

\[\033[01;32m\]\u@\h \[\033[01;34m\]\W \$ \[\033[00m\]qpkg -f /etc/profile
sys-apps/baselayout-1.7.4-r2 *
sys-apps/baselayout-1.7.6 *
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2002-04-25 15:14:38 UTC
Fixed from baselayout-1.7.8.