[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug in builtin function abspath (again)
From: |
Paul D. Smith |
Subject: |
Re: Bug in builtin function abspath (again) |
Date: |
Tue, 30 May 2006 10:49:17 -0400 |
%% Eli Zaretskii <address@hidden> writes:
ez> Incidentally, shouldn't we emulate realpath's failures in
ez> func_realpath on systems that don't have realpath? AFAIK,
ez> realpath fails if the file does not exist, so perhaps we should
ez> stat the result of abspath on such systems and return an NULL if
ez> it fails.
ez> WDYT?
Actually, the man pages I've seen are not specific on this. They all
say:
> The realpath function will resolve both absolute and relative paths
> and return the absolute pathname corresponding to pathname. All but
> the last component of pathname must exist when realpath is called.
It's not immediately clear to me what "all but the last component of
pathname" means; presumably it means that the directory containing the
last filename in pathname must exist, but that the filename itself does
not have to exist.
I'd need to look at some sample implementations to see what that
actually means.
--
-------------------------------------------------------------------------------
Paul D. Smith <address@hidden> Find some GNU make tips at:
http://www.gnu.org http://make.paulandlesley.org
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist