Darren Reed wrote:
> Given that you're tracing setting a variable, isn't it also
> worthwhile generating an event for "unset"?
>
> e.g. if a dtrace script is following variable assignments
> and my shell script does this:
>
> FOO=bar
> unset FOO
> echo ${FOO}
>
> the dtrace script's idea of the state of affairs when echo
> is executed is going to be quite different to the shell's.
>
> Darren
>
This looks like a good idea. It also suggests that the probes might be
better named variable-set and variable-unset. Unset looks trivial to
add, so I can do that and I'll add this change to the spec and repost in
a day or so in case there are any other comments that make sense to
modify the spec..
alan.
--
Alan Hargreaves - http://blogs.sun.com/tpenta
Staff Engineer (Kernel/VOSJEC/Performance)
Systems Technical Support Centre
Sun Microsystems