[indiana-discuss] Code review request

Dirk Wetter spam at drwetter.org
Fri Feb 1 04:59:14 PST 2008


Am 01.02.2008 06:02, Roland Mainz schrieb:
> Shawn Walker wrote:
>> On Jan 31, 2008 5:53 PM,  <David.Comay at sun.com> wrote:
>>> http://cr.opensolaris.org/~comay/webrev-p1-1/
>>>
>>> This addresses for the next Live CD preview the following reported
>>> issues
>>>
>>>         97 Prompt (PS1) should be customized
>>>         205 manpath should be set to include all installed man directories
>>>         339 /usr/X11/bin should be in default $PATH
>> It looks like these changes also cover #206:
>>
>> http://defect.opensolaris.org/bz/show_bug.cgi?id=206
>>
>> Correct?
> 
> 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)).


~/dotfiles are for personal settings, below /etc is system-wide and
this is the place where to setup  PATH, MANPATH and maybe suggest
PS1 and and PAGER.

This is the right thing to do (TM). Especially in NFS/AFS/whatever-
environments with different architectures/distributions but same
homedir you will have problems if you set PATH, MANPATH in ~/dotfiles.
It's the task of the system to come up w/ a proper setting for this,
not of the user.

	Dirk





-- 
Dirk Wetter @ Dr. Wetter IT-Consulting          http://drwetter.org
Beratung IT-Sicherheit + Open Source
Key fingerprint = 2AD6 BE0F 9863 C82D 21B3  64E5 C967 34D8 11B7 C62F

-
Found core file older than 7 days: /usr/share/man/man5/core.5.gz

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 265 bytes
Desc: not available
Url : http://mail.opensolaris.org/pipermail/indiana-discuss/attachments/20080201/973d89ed/attachment.bin 


More information about the indiana-discuss mailing list