screwed up adding to $PATH--cmds don't work
Hi,
I tried adding to my PATH environment variable in ~/.bash_profile, and I screwed something up, and now no commands, like ls, vi, etc., work anymore. I need to get back into ~/.bash_profile and fix it, but I can't figure out how to open ~/.bash_profile to edit it. I usually edit with vi. I'm on max os 10.4.7. |
Try doing what the shell does: look for the executable in a specific ordered list. I suggest you start with this list:
/bin/ /usr/bin/ /usr/local/bin/ Try running whatever program you want by prefixing it with one of these directories: eg. /bin/vi If you still don't understand how you messed up your bash startup scripts once you've gotten into them, post them here (use [ C O D E ] tags please). --- rod. |
Quote:
I have another question: what's the difference between using $PATH and ${PATH}? |
Quote:
For instance: Code:
DIR="/bin/" |
Thanks.
,,, .... |
All times are GMT -5. The time now is 09:03 AM. |