bug-coreutils
[Top][All Lists]
Advanced

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

"readlink -f foo" fails if the target of foo does not exist


From: Thomas Hood
Subject: "readlink -f foo" fails if the target of foo does not exist
Date: Fri, 02 Jan 2004 16:41:14 +0100

Currently,

    readlink -f foo

returns the null string if the target of foo does not exist.  This behavior
differs from that of readlink in Debian woody.  I hope that this will be
considered a bug because the new behavior is much less useful than the old
behavior.  The new behavior can easily be emulated using the old readlink:

    REALPATH="$(old-readlink -f "$FILE")"
    [ -e "$REALPATH" ] || REALPATH=""

but the old behavior cannot easily be emulated using the new readlink.
With the new readlink there is no easy way to find out the ultimate
target of a symlink chain if the target happens not to exist.

Please cc me and address@hidden in replies.
--
Thomas Hood





reply via email to

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