Re: bash scripts: how to determine directory of 'source'd file

2006-02-02 Thread michael
On Tue, 2006-01-31 at 17:39 -0600, [EMAIL PROTECTED] wrote: On Tue, Jan 31, 2006 at 09:26:21PM +, michael wrote: On Tue, 2006-01-31 at 10:16 -0500, Juergen Fiedler wrote: On Tue, Jan 31, 2006 at 02:26:27PM +, michael wrote: Presuming I have a file setEnvVars.sh that I

bash scripts: how to determine directory of 'source'd file

2006-01-31 Thread michael
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 [EMAIL PROTECTED]

Re: bash scripts: how to determine directory of 'source'd file

2006-01-31 Thread Juergen Fiedler
On Tue, Jan 31, 2006 at 02:26:27PM +, michael wrote: 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

Re: bash scripts: how to determine directory of 'source'd file

2006-01-31 Thread michael
On Tue, 2006-01-31 at 10:16 -0500, Juergen Fiedler wrote: On Tue, Jan 31, 2006 at 02:26:27PM +, michael wrote: 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

Re: bash scripts: how to determine directory of 'source'd file

2006-01-31 Thread Jan C. Nordholz
On Tue, Jan 31, 2006 at 09:26:21PM +, michael wrote: On Tue, 2006-01-31 at 10:16 -0500, Juergen Fiedler wrote: On Tue, Jan 31, 2006 at 02:26:27PM +, michael wrote: Presuming I have a file setEnvVars.sh that I wish to source, . path/setEnvVars.sh How do I, within the script,

Re: bash scripts: how to determine directory of 'source'd file

2006-01-31 Thread Randy Belk
michael wrote: On Tue, 2006-01-31 at 10:16 -0500, Juergen Fiedler wrote: On Tue, Jan 31, 2006 at 02:26:27PM +, michael wrote: 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