Body
The bash -n command can assist with verifying changes to your dotfiles, for example:
bash -n .bashrc
bash -n .bash_profile
If you do not see any errors or warnings, then they passed the syntax check. Otherwise, you may need to run the redot command.