On Fri, 26 Jan 2001, Brad Doster wrote:
> When is it necessary/desireable (probably 2 different questions) to
> unset variables created within a script?
It's never necessary, but it can be desireable if you have variables that
are consuming a great deal of resources (e.g. you have variables that
contain entire text files or something), or you want to make sure a
variable ISN'T set when your program looks for it, unless it's been set
deliberately by you at some point.
Exported variables only exist in the current shell and any subshells.
Regular variables exist only within the context of the current process.
So, unless you're sourcing a script, all variables exist in the subshell,
and will be cleaned up automatically when the script exits.
--
Todd A. Jacobs
Senior Network Consultant
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list