Re: locating a sourced file
- From: Neil Cherry <njc@xxxxxxxxxxx>
- Date: Thu, 31 Aug 2006 07:54:08 -0500
On Thu, 31 Aug 2006 13:23:56 +0100, Robert Hull wrote:
On Thursday 31 August 2006 11:52, Angel Tsankov
<fn42551@xxxxxxxxxxxxxxxx> wrote in comp.os.linux.misc:
How can a sourced file determine its location?
Source files cannot determine anything - they are not executables.
I think the OP mean how can a sourced file (like in shell ./file.sh)
determine it's location. This sounds like home work so I won't answer
this directly but take a look at the variable $0.
--
Linux Home Automation Neil Cherry ncherry@xxxxxxxxxxx
http://www.linuxha.com/ Main site
http://linuxha.blogspot.com/ My HA Blog
http://home.comcast.net/~ncherry/ Backup site
.
- Follow-Ups:
- Re: locating a sourced file
- From: Laurenz Albe
- Re: locating a sourced file
- Prev by Date: Re: Scheduling Jobs - Last day of the month - HOWTO?
- Next by Date: Re: locating a sourced file
- Previous by thread: Re: EXT3-fs: dm-7: 553 orphan inodes deleted
- Next by thread: Re: locating a sourced file
- Index(es):
Relevant Pages
|