[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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