Dash ignoring PATH?
My dash shell seems to be ignoring the PATH set in my /etc/environment file. Trying to launch firefox with dash, for example, gives me this message "dash: Can't open firefox". I have to specify "/usr/bin/firefox" for it to work. I'm pretty sure that it didn't work this way before, since some of my shell script are now broken. I could point "/bin/sh" to bash instead (bash still works properly), but I'd like to get to the bottom of this.
I was fiddling with the PATH lately, so that may be the cause. Currently it's like this: Code:
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/myusername/lejos/bin" |
A brief search via www.google.com/linux tells me that dash sources $HOME/.profile. So, check your .profile to see if you have a line like this: set PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/myusername/lejos/bin".
|
Thanks for the reply, but that doesn't seem to be working. Am I doing it right? Here is my ~/.profile file (I added the last line):
Code:
# ~/.profile: executed by the command interpreter for login shells. |
I don't think you are supposed to use set with path
try: Code:
user@system# PATH=$PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/myusername/lejos/bin |
All times are GMT -5. The time now is 12:30 AM. |