cd by directory name doesn't work if you omit the trailing slash
To recreate:
mkdir example
example
Oddly enough, if after the above you then press up to pull up the latest command from history the slash is present (even though it hadn't been there when you ran the command), and if you then hit enter it works correctly.