On 10 Dec 2000, Harry Putnam wrote:
> christopher j bottaro <[EMAIL PROTECTED]> writes:
>
> > thats cool, putting echos in those files to see when they run, but i'd still
> > like to know >where< all the other environment vars are being set.
> >
> > are environ vars set >only< in shell scripts? or are there other things (i
> > dunno, like the kernel at boot time?) that can set environ vars? i've
> > >never< seen the PATH var set without including itself in the definition
> > (i.e. PATH=$PATH:/blah/blah). it must be set for the first time somewhere,
> > right?
>
> There is a default path, but not sure where it is set, guessing I'd
> say kernel. But I don't see lots of stuff I don't know where its
> coming from. Can you name a few of these? Are you sure it isn't
> something in /etc/profile.d?
as i mentioned before, the "bash" shell comes preloaded with a
number of variables.
also, "man login" may answer some of your questions. just the act
of logging in sets a few variables, including PATH. from the man
page for login:
Random administrative things, such as setting the UID and
GID of the tty are performed. The TERM environment vari
able is preserved, if it exists (other environment vari
ables are preserved if the -p option is used). Then the
HOME, PATH, SHELL, TERM, MAIL, and LOGNAME environment
variables are set. PATH defaults to
/usr/local/bin:/bin:/usr/bin:. for normal users, and to
/sbin:/bin:/usr/sbin:/usr/bin for root.
rday
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list