> What do you mean by "closure"?
See here for the explanation of closure. It is a concept in
programming language. Most JavaScript code uses this property
extensively. This feature (or at least something similar to it) will
be also useful to bash in the case of "export -f func". Otherwise, all
the variables used in func has to be manually exported, which is very
inconvenient.
http://en.wikipedia.org/wiki/Closure_%28computer_science%29
--
Regards,
Peng