Roland Mainz writes:
> Steve Nash wrote:
> > Alan Coopersmith wrote:
> [snip]
> > >> * changes the default $PATH and $LD_LIBRARY_PATH for all users
> > >
> > > How does it change the default $PATH?
> > > How does it set $LD_LIBRARY_PATH without breaking other software?
> > 
> > We modify the /etc/{bashrc,csh.cshrc} to change the default environment
> > (for all users).
> 
> 1. Currently there is no /etc/bash.bashrc (e.g. the bash binary is
> compiled without support for this file) and AFAIK no /etc/csh.cshrc
> either
> 2. There is /etc/profile (for login shells) and /etc/ksh.kshrc (for
> _interactive_ ksh93 shells) but both are "going away" in the near
> future, being replaced by /etc/env.d/ (e.g. instead of modifying
> /etc/profile , /etc/ksh.kshrc, /etc/bash.bashrc you put "scriptlets"
> into /etc/env.d/shell_interactive_start/)

It probably doesn't matter at this low a level, because it's pretty
well understood that you can't actually change user's paths in any
reliable way.  Hard-coded "PATH=" expressions are common in user shell
rc scripts -- in no small part due to the historical profusion of
"required" directories that were not part of the user's path by
default.

So, the fact that it tries to do the impossible through an interface
that is itself changing is probably more important than the
instability.

-- 
James Carlson, Solaris Networking              <james.d.carlson at sun.com>
Sun Microsystems / 35 Network Drive        71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677

Reply via email to