Skip to Content.
Sympa Menu

sm-users - [SM-Users] bash spell changes

sm-users AT lists.ibiblio.org

Subject: Sourcemage Users List

List archive

Chronological Thread  
  • From: Hamish Greig <hgreig AT bigpond.net.au>
  • To: sm-users AT lists.ibiblio.org
  • Subject: [SM-Users] bash spell changes
  • Date: Thu, 22 Jan 2004 22:33:24 +1100

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

As long as there are no negative responses, I was hoping to integrate the
bash
spell into the stable grimoire soon (at the end of the month).
There was one bug from my rewrite adding the /etc/profile.d usage,
http://bugs.sourcemage.org/show_bug.cgi?id=5292 .
I have fixed that to my satisfaction, now the only outstanding issue is in
fact twofold.
a) On IRC someone was upset the spell altered the users existing
~/.bash_profile.
b) a request was made to have either the ~/.bash_profile a link
to /etc/profile or at least source /etc/profile ( ". /etc/profile" in the
~/.bash_profile)

After much thought and research I decided not to attempt to deal with either
of these.

a) our system has ~/.bashrc as a symlink to ~/.bash_profile. If --nologin is
specified (as many windowmanagers do when logging in users) then only
~/.bashrc is read (not /etc/profile or ~/.bash_profile). So in order for X
sessions to gain the benefit of the /etc/profile.d structure it is necessary
to add the iteration statement to the users ~/.bash_profile also.
b) /etc/profile is a system-wide login file, users customisations should go
into the ~/.bash_profile which bash reads AFTER the /etc/profile file.
resourcing the /etc/profile file in a users ~/.bash_profile is just wrong and
shouldn't be supported by either guru's or the bash spell.

Please feel free to discuss all of this at length, and please notify me of
any
bugs or reasons to delay the bash spell integration into stable.

Hamish
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAD7UE8fSufZR6424RAhjBAJ9MIx4nQcI+fS4pwRdWbOr3LmWLfgCff3t6
yyoTZY+ESUS1u/oqErRn9Vw=
=eb0w
-----END PGP SIGNATURE-----





Archive powered by MHonArc 2.6.24.

Top of Page