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]> |
Claus Rasmussen wrote: > On Tuesday 09 September 2003 22:43, Douglas Phillipson wrote: > > >>Where might I find a good reference for setting the path variable in all >>the different shells? > > > You can edit /etc/profile file for the sh/ash/bash/ksh/zsh/whatever shells > (but not csh/tcsh), although a better idea would be to put a pair of scripts > into the /etc/profile.d directory. By placing scripts in the /etc/profile.d > directory your customizations is secure from being overwritten by future > system updates. > > > >>Why isn't there a single file that all shells >>consult for common information like a default path? Probably a dumb >>question... > > > The sh family of shells and the csh family have quite different syntax for > assigning environment variables. 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. Just a thought... DSP > > -Claus > > > -- > Taroon-beta-list mailing list > [email protected] > http://www.redhat.com/mailman/listinfo/taroon-beta-list > > -- Taroon-beta-list mailing list [email protected] http://www.redhat.com/mailman/listinfo/taroon-beta-list