On Sat, 25 Nov 2006 18:13:00 +0900, Shigio YAMAGUCHI wrote... > > > o How will you change the output of 'global -f'? > > > > I will add a function such as realpath() which does not follow symlink to > > path.c, > > and will use it instead of realpath(). > > I exactly have it. Function rel2abs() does the opposite of abs2rel() in > libutil/abs2rel.c. > I will add rel2abs to libutil/abs2rel.c. Could you please see it?
rel2abs resolves references to ./ and ../ only when they are at the head of path. Therefore, rel2abs cannot be used instead of realpath. $ pwd /tmp/pathconvert/lib/t $ ./rel2abs .././././z.c /a/b/c/x /a/b/c/z.c $ ./rel2abs x/.././././z.c /a/b/c /a/b/c/x/.././././z.c ---- Hideki IWAMOTO [EMAIL PROTECTED] _______________________________________________ Bug-global mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-global
