[ale] How to expand to full-path name?

Derek Carter goozbach at neverblock.com
Thu Aug 9 15:01:25 EDT 2007


On Thu, 2007-08-09 at 10:57 -0400, Tim Watts wrote:
> Hi,
> 
> Suppose I have MyScript in /home/me/bin which does this:
> 
> 	#!/bin/sh
> 	SCRIPT_HOME=`dirname $0`
> 	echo home=$SCRIPT_HOME
> 


tried "which"?
        
        [user at host ~]$ which ping
        /bin/ping
        
Apparently it's just a batch script

--
Derek




More information about the Ale mailing list