Re: bash question

2011-02-01 Thread Bob McGowan
On 02/01/2011 05:23 AM, fedora wrote: > dirname $0 > > suomi > > On 2011-02-01 13:03, Patrick O'Callaghan wrote: >> On Mon, 2011-01-31 at 14:49 -0700, compdoc wrote: Is there a bash command that tells an executing script what *its* path is? >>> >>> echo $PWD >> >> No, that just tells where i

Re: bash question

2011-02-01 Thread fedora
dirname $0 suomi On 2011-02-01 13:03, Patrick O'Callaghan wrote: > On Mon, 2011-01-31 at 14:49 -0700, compdoc wrote: >>> Is there a bash command that tells an executing script what *its* path is? >> >> echo $PWD > > No, that just tells where it was executed from. The OP wants to know > where the

RE: bash question

2011-02-01 Thread Patrick O'Callaghan
On Mon, 2011-01-31 at 14:49 -0700, compdoc wrote: > > Is there a bash command that tells an executing script what *its* path is? > > echo $PWD No, that just tells where it was executed from. The OP wants to know where the script actually lives. poc -- users mailing list users@lists.fedoraproje

RE: bash question

2011-01-31 Thread compdoc
> Is there a bash command that tells an executing script what *its* path is? echo $PWD -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_lis