Re: Where is a good reference for setting PATH in all the various shells
Sean <sean.azelton-GfOAJA8Me91Wk0Htik3J/[email protected]>
| Newsgroups | gmane.linux.redhat.taroon |
|---|---|
| Organization | Robert Bosch Corporation |
| Message-ID | <[email protected]> |
I would also suggest the following excellent book: Linux Shells by Example (Author: Ellie Quigley) You can get a used one on Amazon.com for $22 US. You can keep it around for reference. >From Amazon.com: Topics covered: Survey of Unix shells (the Bourne, C, and Korn shells), survey of Linux shells (the Bourne Again and TC shells), processes, shell environments, tutorial for regular expressions, grep for file searches, the streamlined editor (sed), awk/nawk/gawk scripts, gawk basics and expressions, gawk programming (variables, arrays, flow control, built-in and user-defined functions), the bash and tcsh shells (interactive mode, programming tutorial for shell scripts), reference to common Linux/Unix utilities, comparison of shells, and tips for using correct quoting styles within shells. Sean On Thu, 2003-09-11 at 11:13, Douglas Phillipson wrote: > 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 -- ########################################### Sean Azelton, RHCE, MCSE Robert Bosch Corporation (RBNA/CIT1) ########################################### Computer Information Technology Office 401 N. Bendix Drive - South Bend, IN 46628 -- Taroon-beta-list mailing list [email protected] http://www.redhat.com/mailman/listinfo/taroon-beta-list