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]> |
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" -- Chris Kloiber Red Hat, Inc. -- Taroon-beta-list mailing list [email protected] http://www.redhat.com/mailman/listinfo/taroon-beta-list