I would like to avoid having two functions to avoid this kind of code:
#if constant(realpath) x = realpath(y); #elif constant(resolvepath) x = resolvepath(y); #endif
/ Martin Nilsson (provokatör)
Previous text:
2004-03-22 18:06: Subject: Re: 7.6
In the last episode (Mar 22), Martin Nilsson (provokatr) @ Pike (-) developers forum said:
I would like to see this as a patch against the resolvepath code rather than a new function.
You mean just a rename of resolvepath to realpath, or make pike's resolvepath call the OS'es realpath? I would prefer to have a pike function called "realpath", since I would expect more people to be looking for that function as opposed to "resolvepath", but I'll be happy as long as it's available at all :)
And don't pay any attention to the Solaris realpath manpage's claim that it may return a relative path in some cases. It's a bug in the manpage:
http://sunsolve.sun.com/private-cgi/retrieve.pl?type=0&doc=bug/manpage/s...
-- Dan Nelson dnelson@allantgroup.com
/ Brevbäraren