Linux - NewbieThis forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.