I'm writing a bash script that executes some commands and at the end it must execute the command:
source .bashrc
When executing my bash script ./test.sh
, all commands are executed except for the source .bashrc
, it seems not to be executed.
So is there a way i can force source .bashrc
to be executed in the bash script?