I'm noticing a strange issue where I appear to be forcefully cd'ed out of my MySQL data directory every time I cd to it. I'm using Terminal.app on OS X 10.6.1.
joebmaclap:mysql joeb$ cd /usr/local/mysql
joebmaclap:mysql joeb$ sudo cd data
Password:
joebmaclap:mysql joeb$ pwd
/usr/local/mysql
Notice that I am cd'ing to the data directory, but at the end of the operation, I am back in the mysql directory. I have never seen anything like this before, and I can't tell if it's a bash or MySQL issue. Does anyone know what is happening?