Re: Where is a good reference for setting PATH in all the various shells

John <spam-awV0wQp4Vu3DYUAvPcDoSaaDwS/[email protected]>
Newsgroups gmane.linux.redhat.taroon
Message-ID <[email protected]>
On Thursday 11 September 2003 15:24, Göran Uddeborg wrote:
> Ed Wilts writes:
> > The biggest reason is that every shell would have to be modified to
> > consult this file.
>
> Not really.  You could have code in the startup scripts which used
> this file.  If for example, /etc/defaultpath contains just a
> colon-separated path, you could add
>
>     PATH=`cat /etc/defaultpath`

You would need to take care with that, because other scripts in /etc/profile.d 
may change PATH.

You need to split /etc/defaultpath, and only add to PATH those bits that are 
necessary.

RH, but not user sites, could modify /etc/proiile & /etc/csh.cshrc to do that 
before looking in /etc/profile.d



-- 
My bits for Taroon: pulled


--
Taroon-beta-list mailing list
[email protected]
http://www.redhat.com/mailman/listinfo/taroon-beta-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.