[Top][All Lists]

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

RE: realpath function failures

From: Dave Korn
Subject: RE: realpath function failures
Date: Fri, 17 Nov 2006 11:16:44 -0000

On 16 November 2006 16:13, Willard, Deanna wrote:

> What are some causes of realpath function failures?
`$(realpath NAMES...)'
     For each file name in NAMES return the canonical absolute name.  A
     canonical name does not contain any `.' or `..' components, nor
     any repeated path separators (`/') or symlinks.  In case of a
     failure the empty string is returned.  Consult the `realpath(3)'
     documentation for a list of possible failure causes.

  So try running "man 3 realpath", or googling "opengroup realpath" for the
posix standard.  The main failure cause would be when the path doesn't
currently exist, i.e. $(realpath dir1/dir2/non-existent-dir/..) and the like
won't work.

Can't think of a witty .sigline today....

reply via email to

[Prev in Thread] Current Thread [Next in Thread]