bash question

Patrick O'Callaghan pocallaghan at gmail.com
Tue Feb 1 12:03:08 UTC 2011


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



More information about the users mailing list