You are not logged in.
Hi,
A not so old textbook points to .bashrc, but it obviously isn't the case with Arch. env command shows a lot of variables; there has to be a file somewhere, hasn't it?
Offline
/etc/profile is systemwide, ~/.bashrc is user specific.
Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy
Offline
.bashrc is all but empty; even /etc/profile is nowhere near as populated as env output...
Offline
Read /etc/profile. It sources /etc/profile.$shell as well as all scripts in /etc/profile.d/ that have the execute bit set.
Offline
Various scripts/programs can also export enviroment variables at their runtime...have you actually looked at the output of env ?
The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...
Offline
have you actually looked at the output of env ?
Yes, I have . I'm just trying to trace it to source...
Offline
/etc/profile/ loads many things in /etc/profile.d, which also might set environment variables.
Offline
bash and login set things like HOME, USER, PWD...
[edit]
Also interesting: /proc/PID/environ (it uses 0 separators, so: cat environ | tr '\0' '\n')
Last edited by Procyon (2009-09-01 11:34:26)
Offline