Original report by Michael Diamond (Bitbucket: dimo414).
watch isn't reasonable to use with Bash functions since it invokes the given command as a subprocess. It would be good to emulate a subset of its features in Bash, however, so functions like wait_ext and wait_port could be more standard (and other gems could add other similar utils).