Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ realpath(1) — IRIX 6.5.3f

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

realpath(3C)

readlink(1)



REALPATH(1)                                                        REALPATH(1)



NAME
     realpath - prints the real file name

SYNOPSIS
     /usr/lib/desktop/realpath path

DESCRIPTION
     realpath provides command-line access to the realpath(3C) library
     routine.  realpath uses the realpath(3C) library routine to resolve all
     links, symbolic links, and references to ``.'' and ``..'' in path and
     prints the result to stdout.  If the realpath(3C) call fails for any
     reason, path is printed and a non-zero exit status is returned.

     The realpath command is intended for use by developers who need access to
     absolute pathnames for their FTR rules.

EXAMPLE
     Suppose that /usr/people/guest is a symlink to
     /otherdisk/usr/people/guest and that the current working directory is
     /usr/people/guest.

     % /usr/lib/desktop/realpath /usr/people/guest/.profile
     /otherdisk/usr/people/guest/.profile
     % echo $status
     0

     % /usr/lib/desktop/realpath ../guest/.profile
     /otherdisk/usr/people/guest/.profile
     % echo $status
     0

     % /usr/lib/desktop/realpath aBadFileName
     aBadFileName
     % echo $status
     255

SEE ALSO
     realpath(3C), readlink(1)

















                                                                        Page 1



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026