Re: Which package creates /etc/environment?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Thus spake Phil Edwards:
# Because 'dpkg -S' can't find it.
A little Googling indicated that your shell may look at it after /etc/profile.
But from what I can see, no package actually creates it. It may have been
created by a script invoked by you or by a program you installed from sources,
but it isn't listed in any packages maintained in Debian.
# And more to the point, what's looking at that file? It isn't my login shell,
# it isn't any of the setup files that it looks at (.bashrc and so forth).
Again, Googling suggested that some shell (not specified in the pages I found)
look at it. However, whatever shell looks at it looks at /etc/profile first.
# But the variables in that file are getting set somehow, and I'd like to
# know how, and what's going to someday break if it gets removed.
AFAIK, all the system-wide environment variables in Debian (using BASH as the
login shell) are set in /etc/profile, /etc/bashrc and possibly in the scripts in
/etc/profile.d. AFAIK, nothing will break if you remove the file, unless it is
part of a package you compiled yourself. Nothing at all in Debian itself should
break if you remove the file.
HTH,
PRINCE
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAW4I3Al2SNUPt1I8RAswXAJ9x1oEp/kzf1E89q6Oc/hZJS3KIZwCfaulH
mI9aZx13+7fETLJCEznvZTA=
=OfG9
-----END PGP SIGNATURE-----
Reply to: