Mike Miller wrote:
> [...]
> So then, does Kathryn's method always work? (with quotes around $0):
> 
> (cd $(dirname "$0"); pwd)
> 

Note that if $0 is a relative path and you change directories in your
script you'll no longer get the right result. However you should be able
to do this early in the script and save the path for later if necessary.

-Steve