Skip to Content.
Sympa Menu

sm-grimoire-bugs - [SM-Grimoire-Bugs] [Bug 9672] New: Missing /etc/bashrc

sm-grimoire-bugs AT lists.ibiblio.org

Subject: SourceMage Grimoire Bug List

List archive

Chronological Thread  
  • From: bugzilla-daemon AT bugs.sourcemage.org
  • To: sm-grimoire-bugs AT lists.ibiblio.org
  • Subject: [SM-Grimoire-Bugs] [Bug 9672] New: Missing /etc/bashrc
  • Date: 31 Mar 2007 07:16:33 -0000

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.



  • [SM-Grimoire-Bugs] [Bug 9672] New: Missing /etc/bashrc, bugzilla-daemon, 03/31/2007

Archive powered by MHonArc 2.6.24.

Top of Page