sm-grimoire-bugs AT lists.ibiblio.org
Subject: SourceMage Grimoire Bug List
List archive
[SM-Grimoire-Bugs] [Bug 9673] New: /etc/skel/.bash_profile should source /etc/profile
- From: bugzilla-daemon AT bugs.sourcemage.org
- To: sm-grimoire-bugs AT lists.ibiblio.org
- Subject: [SM-Grimoire-Bugs] [Bug 9673] New: /etc/skel/.bash_profile should source /etc/profile
- Date: 31 Mar 2007 07:23:23 -0000
http://bugs.sourcemage.org/show_bug.cgi?id=9673
Summary: /etc/skel/.bash_profile should source /etc/profile
Product: Codex
Version: stable grimoire
Platform: All
OS/Version: Linux
Status: CLOSED
Severity: trivial
Priority: P2
Component: shell-term-fm
AssignedTo: sm-grimoire-bugs AT lists.ibiblio.org
ReportedBy: eric AT sandall.us
In order to allow admins to change the default profiles in one spot for all
users (current and future), .bash_profile should source /etc/profile instead
of
duplicating it.
Proposed new /etc/skel/.bash_profile:
----
PATH1=/sbin:/usr/sbin:/usr/local/sbin
PATH2=/bin:/usr/bin:/usr/local/bin
PATH3=/usr/games:/usr/local/games
PATH4=/usr/bin/X11:~/bin
PATH=$PATH1:$PATH2:$PATH3:$PATH4
PS1='\u@\h:\w\$ '
if [ -f /etc/profile ]; then
source /etc/profile
fi
#iteration
for i in /etc/profile.d/*.sh ; do
if [ -r "$i" ]; then
. $i
fi
done
----
------- Additional Comments From eric AT sandall.us 2005-08-29 20:11 -------
Whoops, copied too much for that.
Should be:
----
PATH1=/sbin:/usr/sbin:/usr/local/sbin
PATH2=/bin:/usr/bin:/usr/local/bin
PATH3=/usr/games:/usr/local/games
PATH4=/usr/bin/X11:~/bin
PATH=$PATH1:$PATH2:$PATH3:$PATH4
PS1='\u@\h:\w\$ '
if [ -f /etc/profile ]; then
source /etc/profile
fi
----
Otherwise the iteration will be done twice. ;)
--
------- Additional Comments From eric AT sandall.us 2005-08-29 20:16 -------
<sigh>
The sourcing should go first.
----
if [ -f /etc/profile ]; then
source /etc/profile
fi
PATH1=/sbin:/usr/sbin:/usr/local/sbin
PATH2=/bin:/usr/bin:/usr/local/bin
PATH3=/usr/games:/usr/local/games
PATH4=/usr/bin/X11:~/bin
PATH=$PATH1:$PATH2:$PATH3:$PATH4
PS1='\u@\h:\w\$ '
----
--
------- Additional Comments From benoit.papillault AT sourcemage.org 2005-09-04
11:11 -------
Reassigning to bash spell.
Benoit PAPILLAULT, ISO guru
--
------- Additional Comments From eric AT sandall.us 2005-09-12 22:56 -------
Fixed in devel and test.
--
------- Additional Comments From jblosser-smgl AT firinn.org 2007-03-31 01:23
-------
closing fixed bugs
--
Configure bugmail: http://bugs.sourcemage.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
- [SM-Grimoire-Bugs] [Bug 9673] New: /etc/skel/.bash_profile should source /etc/profile, bugzilla-daemon, 03/31/2007
Archive powered by MHonArc 2.6.24.