On Wed, 27 Feb 2008, Munir Nassar wrote:

> Dan Armbrust wrote:
>> I'm trying to find a variable or a command that will tell me where the
>> currently executing script lives.
>>
>> So, If I'm running /foo/bar.sh, I'm looking for a something that will
>> give me "/foo/", while I'm inside the script bar.sh.
>>
>
> $ dirname /foo/bar.sh
> /foo
> $

$ cd foo
$ dirname bar.sh
.

Oops.  He wants something that works when the full path is not given on 
the command line.  See my earlier message.

Mike