I'm new to bash shell scripting, and have come across a challenge. I know I can reload my ".profile" file by just doing:
. .profile
but I'm trying to execute the same in a bash script I'm writing and it is just not working. Any ideas? Anything else I can provide to clarify?
Thanks
Try this to reload your current shell:
source ~/.profile