|
Home > Archive > Unix Shell > August 2007 > zsh: how to remove a shell variable?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
zsh: how to remove a shell variable?
|
|
|
|
In zsh, is there a way to remove a shell variable so that it is no
longer listed by, say, printenv, and no longer exists in Perl's
%ENV hash? Also, does the fact that the variable I want to remove
was originally exported affect the answer?
(unset does not achieve this.)
TIA!
kj
--
NOTE: In my address everything before the first period is backwards;
and the last period, and everything after it, should be discarded.
| |
|
| In <fakc0a$fu7$1@reader1.panix.com> kj <socyl@987jk.com.invalid> writes:
>In zsh, is there a way to remove a shell variable so that it is no
>longer listed by, say, printenv, and no longer exists in Perl's
>%ENV hash? Also, does the fact that the variable I want to remove
>was originally exported affect the answer?
>(unset does not achieve this.)
My mistake. Sorry. unset does do what I want.
kj
--
NOTE: In my address everything before the first period is backwards;
and the last period, and everything after it, should be discarded.
|
|
|
|
|