Unix Shell - zsh: how to remove a shell variable?

This is Interesting: Free IT Magazines  
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?
kj

2007-08-23, 1:27 pm



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.
kj

2007-08-23, 1:27 pm

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.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com