Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'PATH doesn't seem to be an issue for me' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
PATH doesn't seem to be an issue for me
Authored by: nobody on Feb 10, '04 12:19:31PM
the more modern unix variants wont execute a file if its in your current working directory ( because its not in your PATH by default ). Only commands which are in your PATH are searched and executed. You have to explicitly tell the system where it is:

./xinit ......
You can, however add the current directory to your PATH. Then it will work like you expected, example for tcsh:

setenv PATH {$PATH}:./

[ Reply to This | # ]
PATH doesn't seem to be an issue for me
Authored by: Detrius on Feb 15, '04 12:18:37PM

Take note, however, that adding the current working directory to your $PATH is a serious security risk. If someone finds a way to put a file named 'ls' somewhere on your drive (maybe through guest access/file sharing), and you type ls in that folder as root, then you have excecuted their script as root. This is not a good idea. Just put ./ in front of the filename if you want to run something in the local directory.

[ Reply to This | # ]