The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 -->
  #3 (permalink)  
Old 07-01-2009
Al262 Al262 is offline
Registered User
  
 

Join Date: Jul 2009
Location: Pittsburgh, PA
Posts: 6
RE: KSH - Sourced file location

Thanks for the response, but as you indicate at the end of your post, it only works when a and b are in the same directory. My useCase has to address the notion that a is in a different directory and not necessarily always a.

The useCase is that /app1/a.sh sources /common/b.sh
/app2/c.sh sources /common/b.sh

I need b.sh to know that he is in the common directory.