[SM-Grimoire-Bugs] [Bug 9672] New: Missing /etc/bashrc
bugzilla-daemon at bugs.sourcemage.org
bugzilla-daemon at bugs.sourcemage.org
Sat Mar 31 03:16:33 EDT 2007
http://bugs.sourcemage.org/show_bug.cgi?id=9672
Summary: Missing /etc/bashrc
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
AFAIK there should be a /etc/bashrc which is exactly like /etc/profile except
for the iteration through /etc/profile.d/. /etc/skel/.bashrc should also source
/etc/bashrc if it exists
e.g. (in /etc/skel/.bashrc)
----
if [ -f /etc/bashrc ]; then
source /etc/bashrc
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\$ '
eval `dircolors`
alias ls='ls --color=auto '
export PATH PS1
umask 022
----
And e.g. /etc/bashrc
----
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\$ '
eval `dircolors`
alias ls='ls --color=auto '
export PATH PS1
umask 022
----
------- Additional Comments From eric at sandall.us 2005-08-29 19:57 -------
Sorry, /etc/skel/.bashrc should be mostly empty (other than PATH setup) since
it's sourcing /etc/bashrc which has the alias setups.
--
------- Additional Comments From eric at sandall.us 2005-08-29 20:14 -------
Sorry, /etc/skel/.bashrc should be:
----
if [ -f /etc/bashrc ]; then
source /etc/bashrc
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\$ '
----
As /etc/bashrc will setup the eval, alias, export, and umask.
--
------- Additional Comments From benoit.papillault at sourcemage.org 2005-09-04 11:10 -------
Reassigning to bash spell.
Benoit PAPILLAULT, ISO guru
--
------- Additional Comments From eric at sandall.us 2005-09-12 22:57 -------
Fixed in devel and test.
--
------- Additional Comments From jblosser-smgl at firinn.org 2007-03-31 01:16 -------
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.
More information about the SM-Grimoire-Bugs
mailing list