[ale] How to expand to full-path name?
Jeff Lightner
jlightner at water.com
Thu Aug 9 15:59:16 EDT 2007
"whence" is my preference but since bash doesn't have it and ksh also
understands "which" that is "what" I use in both shells.
(I'm tempted to ask "why" I have to but "where" would I go from there?)
-----Original Message-----
From: ale-bounces at ale.org [mailto:ale-bounces at ale.org] On Behalf Of
To: ale at ale.org
Geoffrey
Sent: Thursday, August 09, 2007 3:15 PM
To: Atlanta Linux Enthusiasts
Subject: Re: [ale] How to expand to full-path name?
Ken Alexander wrote:
> Jeff is right. Everything there should work in recent versions of
bash,
> ksh, or sh. If you have problems on Solaris, use an interpreter
> from /usr/xpg4/bin.
One tool that would be of great help in this problem is 'whence' as in:
rhws/home/esoteric> whence ksh
/bin/ksh
Gives you the full path to the program or script as long as it's in your
path. All you have to do is strip off the program name.
Problem is, that is strictly ksh, it does not work in borne.
--
Until later, Geoffrey
Those who would give up essential Liberty, to purchase a little
temporary Safety, deserve neither Liberty nor Safety.
- Benjamin Franklin
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale
More information about the Ale
mailing list