bash scripts: how to determine directory of 'source'd file
- From: michael <linux@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 31 Jan 2006 14:26:27 +0000
Presuming I have a file setEnvVars.sh that I wish to source,
. path/setEnvVars.sh
How do I, within the script, determine the actual directory within which
the setEnvVars.sh file sits? The sourcing seems to disallow me access to
$0 etc
thanks, M
--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
- Follow-Ups:
- Re: bash scripts: how to determine directory of 'source'd file
- From: Juergen Fiedler
- Re: bash scripts: how to determine directory of 'source'd file
- Prev by Date: Re: wrong RE: Not a Debian question, but you guys know this stuff...
- Next by Date: Re: bash scripts: how to determine directory of 'source'd file
- Previous by thread: Apache2/RequestUtil.pm
- Next by thread: Re: bash scripts: how to determine directory of 'source'd file
- Index(es):
Relevant Pages
|