This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: dir/../ collapsing improvements (and bug fix?)
- From: DJ Delorie <dj at redhat dot com>
- To: aoliva at redhat dot com
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 2 Dec 2005 15:04:23 -0500
- Subject: Re: dir/../ collapsing improvements (and bug fix?)
- References: <orlkz3p8y0.fsf@livre.oliva.athome.lsd.ic.unicamp.br>
Note that libiberty has a canonicalize-path function too.
Note also that the main reason we don't always collapse .. is for
cases like symlink/.. where symlink points elsewhere; collapsing that
to . results in a different destination. Not that I'm a big fan of
relying on those semantics, though. It's useful in some cases, and
harmful in others.