Yes. What the env command buys you is the ability to remove either the whole
environment or just selected parts of it. This can be very useful in testing, and in
making sure that your lovingly-developed new program does not have a hidden
dependency on something you added to your .profile three years ago.
Look at env -i or -u. Note that env -u VARIABLE command is *different* from
VARIABLE= command -- in the latter case VARIABLE is still in command's
environment even though it has been set to nothing.
John.
Another thing that the env command buys is shell-independence. In
csh/tcsh, to run a command with temporary environment changes, you would
need to do:
(setenv PAGER cat; setenv LC_TYPE=en_US.ISO8859-1; perldoc perltw)
The env command works the same no matter what shell you're using it from.
--
Barry Margolin, bar...@genuity.net
Genuity, Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.