Possible to use /usr/bin/watch to call a function?

view full story

http://www.unix.com – I want to have a script both define functions and have the ability to run an external program calling one of them. This is the simplified construct: Code: #!/bin/bash foo() {   echo "this is foo" } bar() {   echo "this is bar" } case "$1" in   one)     foo     ;;   two)     export bar     /usr/bin/watch bar     ;;   *)     echo $0 "{one|two}"     exit 0     ;; esac So if I invoke /path/to/script one the foo function (HowTos)