As a follow-up question to the answer proposed in Completely restart Bash -- I'm wondering if this works from within a shell script?
This is for a setup script for new machines.
What I'm doing is replacing a few standard commands with my own variants (e.g. a 'service' variant that provides proper feedback on CentOS 7 instead of a redirect message with no further output) and I'm doing that from a setup.sh script in bash. These replacements are copied to /usr/local/sbin/ but won't take effect until the shell is restarted. I'm planning to do that with: exec bash -l as suggested, but does this work from within a shell script?