Re: Where is a good reference for setting PATH in all the various shells
Douglas Phillipson <phillipd-srprbEdeCKVYTrM/[email protected]>
| Newsgroups | gmane.linux.redhat.taroon |
|---|---|
| Message-ID | <[email protected]> |
OK, I was trying not to show my ignorance on this matter but I guess I'll have to by asking some direct questions. I don't understand the /etc/profile.d mechanism. When do these scripts get run? Automaticly during boot, or when some app intentionally runs them, at some run level, when? If I put a script that sets and EXPORTS PATH there does it get run automaticly and will bash use that path? Regards DSP John wrote: > 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 > > > -- Taroon-beta-list mailing list [email protected] http://www.redhat.com/mailman/listinfo/taroon-beta-list