Hi, I was adding a directory to the PATH variable using export function, and the command completed before I finished typing. So now there’s a bogus element in PATH. I’ve looked for it in /etc/profile and ~/.bashrc. It doesn’t appear to be in either. Anyone know how to eliminate the entry from PATH?
Close the shell and create a new one? Open a new non-child shell and
view its PATH and copy it over?
Good luck.
Slipstream00 wrote:
| Hi, I was adding a directory to the PATH variable using export function,
| and the command completed before I finished typing. So now there’s a
| bogus element in PATH. I’ve looked for it in /etc/profile and
| ~/.bashrc. It doesn’t appear to be in either. Anyone know how to
| eliminate the entry from PATH?
|
| Thanks for any replies!
|
|
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
Thanks, but it doesn’t seem to do it. I might not have understood your solution correctly, but I copied the desired path to a new root console after closing the old one.
The command I used was:
# export PATH='/usr/bin:opt/local/bin......'
No luck though. After reboot, the omitted elements were still present.