That's because "cd $HOME" is unnecessary, you can just type in "cd" and that puts you in ~/
And "$HOM" and other things like that end up resolving to blank, so "cd $HOM" just gets resolved to "cd", which, as I said, puts you in ~/
And "$HOM" and other things like that end up resolving to blank, so "cd $HOM" just gets resolved to "cd", which, as I said, puts you in ~/