Gentoo Archives: gentoo-dev

From: Juergen Ilse <juergen@×××××××××××.de>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] /etc/profile
Date: Mon, 03 Dec 2001 17:55:48
Message-Id: 20011204005502.A2788@ilse.asys-h.de
In Reply to: [gentoo-dev] /etc/profile by Zach Forrest
1 Hello,
2
3 On Sun, Dec 02, 2001 at 05:52:12PM -0800, Zach Forrest wrote:
4 > I noticed some discussion in November about /etc/profile, but it seems
5 > to have trailed off. Are there any objections to adding the following?
6 >
7 > if [ -e "${HOME}/.bash_profile" ]; then
8 > . ${HOME}/.bash_profile
9 > fi
10
11 I think, it is not a good idea ...
12 If you start bash as login-shell, it should parse ${[HOME}/.bash_profile
13 if that file exists, so there should be no need for such a hack. If you
14 insert "bash-specific" commands to this file, you may get error-messages,
15 if you use some other shell that reads /etc/profile (for example ash, sash
16 or ksh). Please don't do such things like inserting something like source
17 ~/.bash_profile in /etc/profile. /etc/profile should not be bash-specific
18 in any way.
19
20 ciao,
21 Juergen Ilse (ilse@××××××.de)
22 --
23 Wenn ich auch nur aus jedem 1000. Bug in einem M$ Produkt|Juergen Ilse
24 einen Tag trauern wollte, also da muesste ich 300 Jahre |Internet POP Hannover
25 alt werden und wuerde mehrere Dutzend schwarze Anzuege |Vahrenwalder Str. 205
26 aufbrauchen. (Detlef Bosau in dcoulm) |30165 Hannover