The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 12-31-2008
bobban bobban is offline
Registered User
  
 

Join Date: Dec 2008
Posts: 5
PATH directory search order

Hello

I using CygWin and am working on project that requires whereby after I make some code changes and rebuild I have to manually copy the updated files into the install directory to test them. There is a build output directory where these files placed, but the program will not run from there. It is mainly dll files that need updating.

So I thought if I set up my path with the build output directory as the first path my program might search there first, and thereby find the updated dll if there is one.

I tried changing my PATH using the following script something like:

PATH="/cygdrive/d/dev/Builds/BuildOutputDir:.:"

However, no matter what I do my application always seems to use the dll from the install directory if there is one. If I remove the dll from that directory and test by setting a few other directories in the PATH then I can see that the precedence of the directories is working correctly. Just I cannot remove the working directory...

Is what I am trying to do possible? Is what I set my PATH to correct?

Thanks in advance for your help.

Last edited by bobban; 12-31-2008 at 10:36 PM..