Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 1078 - /etc/profile is not nice to shells != bash
Summary: /etc/profile is not nice to shells != bash
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-11 15:54 UTC by Spider
Modified: 2003-02-04 19:42 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 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.