This is my simplified script.
I am wondering if the proc() can know if it is run directly or through the runner.
#!/bin/bash
runner () {
"${@}"
}
proc() {
eval 'version=$(echo "SUCCESS: **** ${BASH_VERSION} ****")'
echo -e "$version";
return 0
}
runner proc
proc
What do you think?