[indiana-discuss] Code review request
David.Comay at Sun.COM
David.Comay at Sun.COM
Thu Jan 31 21:08:30 PST 2008
> Yes and no. The PATH, MANPATH and PAGER variables should be set in
> either /etc/profile or ~/.profile to affect all shells and should not be
> stored in ~/.bashrc (I forgot to say that in my last review comment (if
> anyone is now completely confused: The seperation rules work like this:
> If it should only affect the shell itself in interactive mode the
> variable goes into /etc/bash.bashrc||~/.bashrc (for bash) or
> /etc/ksh.kshrc||~/.kshrc (for ksh) and should not be exported into the
> environment, if the setting should affect anything outside the shell the
> variable goes into /etc/profile or ~/.profile and gets exported into the
> environment)).
Understood about the separation but in this case, I want to limit the
changes to strictly the new user's bashrc file. We'll later expand
this to include other shells via /etc/profile or ~/.profile if it's
deemed appropriate.
dsc
More information about the indiana-discuss
mailing list