help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NON-trivial regular expression problem (could not find on google)


From: Dr. Yuan Liu
Subject: Re: NON-trivial regular expression problem (could not find on google)
Date: Sun, 19 Jan 2003 19:26:56 GMT
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01

Peter J. Acklam wrote:
address@hidden (Instant Democracy) wrote:
The task is to eliminate patterns such as DIRNAME/../
from the path because they are redundant.

Are they really?  If DIRNAME is a symlink, then there is no
guarantee that these two point to the same place:

   foo/bar/..
   foo

You *must* ensure that DIRNAME is not a symlink before you
simplify the pathnames like this.

This seems to depend on the shell. Only C-ish shells will turn symlinks into real path and cause a problem. Bournish and Kornish shells all stick with the symbolic path, i.e., foo/bar/.. is always foo.

Yuan Liu



reply via email to

[Prev in Thread] Current Thread [Next in Thread]