Issue while creating bash aliases

I have added some aliases to ~/.bash_aliases and tried to run ~/.bashrc which gave the following error
./.bashrc: line 6: return: can only `return’ from a function or sourced script

it worked on one of the BBB and my ubuntu pc but not the other one. Both the BBBs are loaded with 14.04 3.8.13-bone63 . What could be the reason for one BBB responding differently ?