Table of Contents

# $EPIC: realpath.txt,v 1.1.1.1 2006/07/11 04:57:43 jnelson Exp $

Synopsis:

$realpath(<filepath>)

Technical:

Practical:

Useful if you want to find the absolute path of filename with '.' or '..' or symbolic links in it.

Returns:

The absolute path equivalent of <filepath>

Examples:

If /home is a symbolic link to /usr/home, and /usr/local is a link to /local, then

$realpath(/home/../local/src)  returns "/local/src"

 (/home -> /usr/home
  ..    -> /usr
  local -> /local
  src   -> /local/src)