source workDispatcher doDynamic() { _cmd="doSomething" local item for item in "$@"; do echo "$item" done | dispatchWork }