LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Full Path problems (https://www.linuxquestions.org/questions/linux-newbie-8/full-path-problems-68205/)

chedmaster 06-26-2003 10:21 AM

Full Path problems
 
My company just switched to SCO United Linux from Unix.

In Unix, to call a script or executable in the current directory, all that was needed was to type in the name, e.g.

% test.sh

In the new Linux box, to do the same thing, I either have to type the full path to the script, or use a ./ before the name, e.g.

% /home/user/test.sh OR
% ./test.sh

I realize this is a problem with the PATH to the file. How can I include the current working directory in the PATH other than adding every directory a script may be in?

acid_kewpie 06-26-2003 10:24 AM

it's not a "problem" that is the correct behavior. you should never have your current directory on your path. the commands you can run should not be affected by the directory you are in in most cases. i'd just assume that your syadmin or whatever had put . onto the end of your path statement, which is not a good idea.


All times are GMT -5. The time now is 08:20 PM.