Does remote_dots() in kpathsea work?

Albert Chin <[email protected]> Thu, 22 Dec 2005 11:55:13 -0600
Newsgroups gmane.comp.tex.tetex.general
Message-ID <[email protected]>
Does remove_dots() in texk/kpathsea/progname.c work? If I build it
with -DTEST to run the small test suite, I get:
  $ cd /opt/build/tetex-src-3.0/texk/kpathsea
  $ cc -DTEST progname.c .libs/libkpathsea.a
  $ ./a.out
  /w/kpathsea
  /w/kpathsea
  /w/kpathsea
  /opt/build/tetex-src-3.0/texk/kpathsea
  /opt/build/tetex-src-3.0/texk/kpathsea
  /opt/build/tetex-src-3.0/texk/kpathsea
  /opt/build/tetex-src-3.0/texk/kpathsea
  /kpathsea/foo
  /w/kpathsea
  /w/kpathsea
  /te/bin/gnu

Based on this output, "/kpathsea/foo" <- "/kpathsea/../foo". But, this
isn't right. Why doesn't:
  remove_dots ("/kpathsea/../foo") -> "/foo"
  remove_dots ("/te/share/texmf/../../../../bin/gnu") -> "/bin/gnu"

-- 
albert chin ([email protected])