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

Chris Kloiber <[email protected]>
Newsgroups gmane.linux.redhat.taroon
Organization Red Hat, Inc.
Message-ID <[email protected]>
Look in the files already in /etc/profile.d

On Wed, 2003-09-10 at 15:37, Douglas Phillipson wrote:
> How about a couple of samples???
> 
> Thanks
> 
> DSP
> 
> Chris Kloiber wrote:
> > On Wed, 2003-09-10 at 13:26, Ed Wilts wrote:
> > 
> >>On Wed, Sep 10, 2003 at 09:20:47AM -0700, Douglas Phillipson wrote:
> >>
> >>>Path is such a basic environment, it would be nice to have a 
> >>>/etc/defaultpath file where all paths are on a separate line and all 
> >>>shells would first consult this file.  Perhaps even a 
> >>>/etc/defaultrootpath /etc/defaultuserpath.  There are probably 20 good 
> >>>reasons this isn't a good idea, though I don't know what they are.
> >>
> >>The biggest reason is that every shell would have to be modified to
> >>consult this file.  One thing that could potentially happen (and you
> >>could write it yourself) is to modify the login script to read the file
> >>and update the path variable accordingly.
> >>
> >>In my experience, very few shells are actually in common use.  I'll
> >>venture a guess that on the vast majority of Linux systems, bash is the
> >>only interactive shell that's used.
> > 
> > 
> > Is there a problem with /etc/profile.d ?
> > 
> > It's easy to modify the path by dropping a pair of files in there, one
> > ending in ".sh" the other ending in ".csh" 
> > 
> 
> 
> --
> Taroon-beta-list mailing list
> [email protected]
> http://www.redhat.com/mailman/listinfo/taroon-beta-list
-- 
Chris Kloiber
Red Hat, Inc.


--
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.