POSIX compliant path joining -
i want write posix compliant function join paths. i've read pathname resolution section. i'm not sure should result when first path starts "..".
if join "../abc/def" , "xyz", of following, should result in opinion? why?
abc/def/xyz /abc/def/xyz ../abc/def/xyz
something else?
..
actual file system entry referring parent of directory contained in. joining 2 paths should not depend on context, such identity of current directory. ../abc/def/xyz
correct answer lacking such context.
Comments
Post a Comment