If you're trying to interrogate your PATH environment variable, do not run export $PATH. This will set your PATH to PATH. This will be less than ideal.
Use echo $PATH and export PATH=foobar:$PATH to set.
~~~ the more^H^H^H^Hless you know^H^H^H^Hbreak ~~~