[ale] How to expand to full-path name?
Chuck Huber
chuck at cehuber.org
Thu Aug 9 19:39:09 EDT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
> Date: Thu, 09 Aug 2007 12:10:46 -0400
> From: Jay Loden <ale at jayloden.com>
> Subject: Re: [ale] How to expand to full-path name?
> To: Atlanta Linux Enthusiasts <ale at ale.org>
> Message-ID: <46BB3C86.4040403 at jayloden.com>
> Content-Type: text/plain; charset=UTF-8
>
>
>
> Ken Alexander wrote:
>> http://www.ale.org/mailman/listinfo/ale
>>
>> $0 is whatever you typed in at the command line. So you can call the
>> script with the absolute path. Instead of "./script" use
>> "/full/path/to/script".
Couldn't you use which?
dir=`which $0`
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGu6WdiR3HaLbYCa4RAtSxAJ48Xi2f24/Rzclylap2lRJxvNLX8wCfcABT
5XWbhzAHEAIf8fJc7s3evhE=
=F99P
-----END PGP SIGNATURE-----
More information about the Ale
mailing list