|
|
|
|
||||||
| comp.unix.shell Using and programming the Unix shell. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hi,
I'm wondering if it is possible to source a file without specifying the directory it is in (bash). Is there any way to specify the search path for sourced files. With this, I can just source a file just like including a file in C++. source file_without_path #include <file_without_path.h> Thanks, Peng |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
On Thu, 27 Dec 2007 20:26:28 -0800, PengYu.UT@gmail.com wrote:
> Hi, > > I'm wondering if it is possible to source a file without specifying the > directory it is in (bash). Is there any way to specify the search path > for sourced files. > > With this, I can just source a file just like including a file in C++. > > source file_without_path > > #include <file_without_path.h> > > Thanks, > Peng If you had typed " source" in bash you would see that "source" looks for its file using the PATH variable. |
|
![]() |
| Outils de la discussion | |
|
|