And of course I now see that I missed a line out cutting and pasting the first example. Rather than repost the whole thing it is included below.
> 1. Catching a variable assignment
...
> $ ./watch.d -c ./var.sh
> 4: WatchedVar=Value
>
5: unset WatchedVar
Alan
--
Alan Hargreaves - http://blogs.sun.com/tpenta
Staff Engineer (Kernel/VOSJEC/Performance)
Systems Technical Support Centre
Sun Microsystems
